fix a couple out-by-one errors highlighted by quaternions

This commit is contained in:
Bill Currie 2004-04-09 02:20:47 +00:00
parent 0e47ee96f8
commit 50dc955652

View file

@ -399,7 +399,7 @@ free_location (def_t *def)
def_t *
get_tempdef (type_t *type, scope_t *scope)
{
int size = type_size (type);
int size = type_size (type) - 1;
def_t *def;
if (free_temps[size]) {
@ -438,7 +438,7 @@ free_tempdefs (void)
pr_type_name[d->type->type],
d->ofs, d->users, d->managed);
}
size = type_size (d->type);
size = type_size (d->type) - 1;
if (d->expr)
d->expr->e.temp.def = 0;