* include/gc_inline.h (GC_FAST_MALLOC_GRANS): Replace
(word)my_entry<=num_direct with (signed_word)my_entry-num_direct<=0
to avoid "checking unsigned var < 0" warning if num_direct==0
(no overflow is expected in (signed_word)my_entry-num_direct as it is
guaranteed that (word)my_entry<=num_direct+GC_TINY_FREELISTS+1).
break; \
} \
/* Entry contains counter or NULL */ \
- if ((GC_word)my_entry <= (num_direct) && my_entry != 0) { \
+ if ((GC_signed_word)my_entry - (GC_signed_word)(num_direct) <= 0 \
+ /* (GC_word)my_entry <= (num_direct) */ \
+ && my_entry != NULL) { \
/* Small counter value, not NULL */ \
*my_fl = (char *)my_entry + (granules) + 1; \
result = (default_expr); \