From 23398db72059f99834ffa4a862b17d16f218c4b0 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 28 Dec 2011 10:42:49 +0400 Subject: [PATCH] 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) --- dyn_load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dyn_load.c b/dyn_load.c index 3d5aad36..7803c955 100644 --- a/dyn_load.c +++ b/dyn_load.c @@ -1233,7 +1233,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; @@ -1298,7 +1298,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; -- 2.40.0