aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/regalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ir/regalloc.c')
-rw-r--r--ir/regalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/regalloc.c b/ir/regalloc.c
index 29d9f88..691793e 100644
--- a/ir/regalloc.c
+++ b/ir/regalloc.c
@@ -194,7 +194,7 @@ allocstk(struct rega *ra)
for (int i = 0; i < BSSIZE(MAXSPILL); ++i) {
if (ra->freestk[i].u != 0) {
- s = i*64 + lowestsetbit(ra->freestk[i].u);
+ s = i*BSNBIT + lowestsetbit(ra->freestk[i].u);
break;
}
}