summaryrefslogtreecommitdiff
path: root/dyn_load.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-12-28 07:42:49 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-12-30 10:55:32 +0100
commit23398db72059f99834ffa4a862b17d16f218c4b0 (patch)
tree5fd78cd5a3150203038d3ff16047da16505eae14 /dyn_load.c
parent399f0ef551490924bb428028affb1ef9bdcf05d9 (diff)
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)
Diffstat (limited to 'dyn_load.c')
-rw-r--r--dyn_load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dyn_load.c b/dyn_load.c
index 3d5aad3..7803c95 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;