diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-13 09:50:52 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-13 09:53:54 -0400 |
commit | 95f1a20e0e9569a892ca4dec6573241dc643a1d2 (patch) | |
tree | 5766cc45858564fe9b568605fd7fbc4307dd4afe /util.c | |
parent | 32d9e33191a08e9162cebfac6e19cbd56eb1b3b6 (diff) | |
download | roux-95f1a20e0e9569a892ca4dec6573241dc643a1d2.tar.gz |
separate name and index in newtmp()
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c index ee8030f..dbba264 100644 --- a/util.c +++ b/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; |