aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/fold.c
diff options
context:
space:
mode:
Diffstat (limited to 'ir/fold.c')
-rw-r--r--ir/fold.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ir/fold.c b/ir/fold.c
index bfd78ff..6baafe8 100644
--- a/ir/fold.c
+++ b/ir/fold.c
@@ -50,6 +50,7 @@ foldint(enum op op, enum irclass k, union ref lr, union ref rr)
case Ougte: x = l.u >= r.u; break;
default: assert(0);
}
+ if (!w) x = (uint)x;
return mkintcon(k, x);
}