diff options
Diffstat (limited to 'rts/linker/MachO.c')
-rw-r--r-- | rts/linker/MachO.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/linker/MachO.c b/rts/linker/MachO.c index 87888e9c87..fd36cd2e5a 100644 --- a/rts/linker/MachO.c +++ b/rts/linker/MachO.c @@ -1661,7 +1661,7 @@ ocGetNames_MachO(ObjectCode* oc) commonCounter = (unsigned long)commonStorage; if (oc->info->symCmd) { - for (int i = 0; i < oc->n_symbols; i++) { + for (size_t i = 0; i < oc->info->n_macho_symbols; i++) { SymbolName* nm = oc->info->macho_symbols[i].name; MachONList *nlist = &oc->info->nlist[i]; if((nlist->n_type & N_TYPE) == N_UNDF |