mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Forgot to coorect the adjustment of the def's offset (yet I knew I was supposed to :P)
This commit is contained in:
parent
f48d41848a
commit
992aa04994
2 changed files with 3 additions and 2 deletions
|
@ -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 ("");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue