allocate defs using the correct size from the type

This commit is contained in:
Bill Currie 2002-05-31 05:04:16 +00:00
parent 381bdb2323
commit ccf2a0b34a

View file

@ -236,7 +236,7 @@ PR_NewDef (type_t *type, const char *name, def_t *scope)
int
PR_NewLocation (type_t *type)
{
int size = pr_type_size[type->type];
int size = type_size (type);
locref_t *loc;
if (free_locs[size]) {