From: Ivan Maidanski Date: Wed, 28 Dec 2011 06:42:49 +0000 (+0400) Subject: Fix compiler warning in GC_dyld_image_add/remove (Darwin) X-Git-Tag: gc7_3alpha2~262 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=497b37f1416b28352fdd8ef610a50f0a956d3d8f;p=gc Fix compiler warning in GC_dyld_image_add/remove (Darwin) * dyn_load.c (GC_dyld_image_add, GC_dyld_image_remove): Declare i, j local variables as unsigned (to prevent compiler warning in a comparison involving sizeof) --- diff --git a/dyn_load.c b/dyn_load.c index e823c8d8..8532d285 100644 --- a/dyn_load.c +++ b/dyn_load.c @@ -1230,7 +1230,7 @@ STATIC void GC_dyld_image_add(const struct GC_MACH_HEADER *hdr, intptr_t slide) { unsigned long start, end; - int i, j; + unsigned i, j; const struct GC_MACH_SECTION *sec; const char *name; GC_has_static_roots_func callback = GC_has_static_roots; @@ -1295,7 +1295,7 @@ STATIC void GC_dyld_image_remove(const struct GC_MACH_HEADER *hdr, intptr_t slide) { unsigned long start, end; - int i, j; + unsigned i, j; const struct GC_MACH_SECTION *sec; char secnam[16]; const char *fmt;