(fix of commit 9468065)
* misc.c (GC_get_size_map_at): Replace (size_t)(signed_word)-1 to
GC_SIZE_MAX.
* tests/test.c [!GC_GET_HEAP_USAGE_NOT_NEEDED] (check_heap_stats):
Replace (size_t)(GC_signed_word)-1 to -1.
GC_API size_t GC_CALL GC_get_size_map_at(int i)
{
if ((unsigned)i > MAXOBJBYTES)
- return (size_t)(signed_word)-1;
+ return GC_SIZE_MAX;
return GRANULES_TO_BYTES(GC_size_map[i]);
}
(void)GC_get_prof_stats_unsafe(&stats, sizeof(stats));
# endif
}
- (void)GC_get_size_map_at((size_t)(GC_signed_word)-1);
+ (void)GC_get_size_map_at(-1);
(void)GC_get_size_map_at(1);
# endif