Forgot to coorect the adjustment of the def's offset (yet I knew I was supposed to :P)

This commit is contained in:
Bill Currie 2007-04-10 14:03:34 +00:00 committed by Jeff Teunissen
parent f48d41848a
commit 992aa04994
2 changed files with 3 additions and 2 deletions

View file

@ -152,13 +152,14 @@ dump_functions (progs_t *pr)
else
comment = va (" = #%d", -start);
printf ("%-5d %s%s: %d", i, name, comment, func->numparms);
printf ("%-5d %s%s: %d (", i, name, comment, func->numparms);
if (func->numparms < 0)
count = -func->numparms - 1;
else
count = func->numparms;
for (j = 0; j < count; j++)
printf (" %d", func->parm_size[j]);
printf (") %d @ %d", func->locals, func->parm_start);
puts ("");
}
}

View file

@ -464,7 +464,7 @@ finish_compilation (void)
num_localdefs += f->scope->space->size;
}
for (def = f->scope->head; def; def = def->def_next) {
def->ofs += pr.near_data->size;
def->ofs += df->parm_start;
relocate_refs (def->refs, def->ofs);
}
}