Skip to content

Commit 831b2f8

Browse files
committed
Update ksort.h
From my personal communication, I got this suggestion: using inline incorrectly: see the C99 standard §6.7.4. Please change to static inline (and report upstream). This also caused some clang compilation problem.
1 parent 1297bc9 commit 831b2f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ksort.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ typedef struct {
147147
tmp = *l; *l = l[i]; l[i] = tmp; ks_heapadjust_##name(0, i, l); \
148148
} \
149149
} \
150-
inline void __ks_insertsort_##name(type_t *s, type_t *t) \
150+
static inline void __ks_insertsort_##name(type_t *s, type_t *t) \
151151
{ \
152152
type_t *i, *j, swap_tmp; \
153153
for (i = s + 1; i < t; ++i) \

0 commit comments

Comments
 (0)