Permalink
Browse files

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.
  • Loading branch information...
1 parent 1297bc9 commit 831b2f89d19e59cbd6f849d8143a5022d716298a @zhanxw zhanxw committed Nov 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ksort.h
View
@@ -147,7 +147,7 @@ typedef struct {
tmp = *l; *l = l[i]; l[i] = tmp; ks_heapadjust_##name(0, i, l); \
} \
} \
- inline void __ks_insertsort_##name(type_t *s, type_t *t) \
+ static inline void __ks_insertsort_##name(type_t *s, type_t *t) \
{ \
type_t *i, *j, swap_tmp; \
for (i = s + 1; i < t; ++i) \

0 comments on commit 831b2f8

Please sign in to comment.