aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/optmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'ir/optmem.c')
-rw-r--r--ir/optmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/optmem.c b/ir/optmem.c
index 35544b2..f9ad245 100644
--- a/ir/optmem.c
+++ b/ir/optmem.c
@@ -228,7 +228,7 @@ mem2reg(struct function *fn)
FREQUIRE(FNUSE);
- if (fn->nblk <= 64 * countof(bsbuf[0])) {
+ if (fn->nblk <= BSNBIT * countof(bsbuf[0])) {
sb.sealed = bsbuf[0];
sb.marked = bsbuf[1];
memset(bsbuf[0], 0, BSSIZE(fn->nblk) * sizeof *bsbuf[0]);