aboutsummaryrefslogtreecommitdiff
path: root/src/fold.cff
diff options
context:
space:
mode:
Diffstat (limited to 'src/fold.cff')
-rw-r--r--src/fold.cff1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fold.cff b/src/fold.cff
index c9991b7..00e4702 100644
--- a/src/fold.cff
+++ b/src/fold.cff
@@ -129,6 +129,7 @@ fn fbinary(ex *Expr) void {
case op == '<<' and ty->is(:Int); ei.i = li.i << ri.i;
case op == '>>' and ty->is(:Int) and !ty.u.Int.sgn; ei.u = li.u >> ri.u;
case op == '>>' and ty->is(:Int); ei.i = li.i >> ri.i;
+ case else return;
}
if !ex.ty->is(:Bool) {