separate name and index in newtmp()
This commit is contained in:
parent
32d9e33191
commit
95f1a20e0e
1 changed files with 1 additions and 1 deletions
2
util.c
2
util.c
|
@ -215,7 +215,7 @@ newtmp(char *prfx, int k, Fn *fn)
|
|||
t = fn->ntmp++;
|
||||
vgrow(&fn->tmp, fn->ntmp);
|
||||
if (prfx)
|
||||
sprintf(fn->tmp[t].name, "%s%d", prfx, ++n);
|
||||
sprintf(fn->tmp[t].name, "%s.%d", prfx, ++n);
|
||||
fn->tmp[t].cls = k;
|
||||
fn->tmp[t].slot = -1;
|
||||
fn->tmp[t].nuse = +1;
|
||||
|
|
Loading…
Add table
Reference in a new issue