aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ir_fold.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-04-09 14:04:45 +0200
committerlemon <lsof@mailbox.org>2026-04-09 14:05:31 +0200
commit3dd91560a2dca691953a5691e96787adeeb509d5 (patch)
tree68f1f2b63436c6e92a00d665b850485f6990e490 /src/ir_fold.c
parent7355aa3e9e88b7236fc86226b50ce820c7ff5220 (diff)
mkintcon: bugfix clamp i32 to i32 range
Diffstat (limited to 'src/ir_fold.c')
-rw-r--r--src/ir_fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir_fold.c b/src/ir_fold.c
index 37edbbc..fcfe88b 100644
--- a/src/ir_fold.c
+++ b/src/ir_fold.c
@@ -67,7 +67,7 @@ foldint(enum op op, enum irclass k, Ref lr, Ref rr)
case Ougte: x = l.u >= r.u; break;
default: assert(0);
}
- if (cls2siz[k] < 8) x = (int)x;
+ if (!w) x = (int)x;
return mkintcon(k, x);
}