aboutsummaryrefslogtreecommitdiff
path: root/src/exact_value.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-10-06 17:11:17 +0100
committerGinger Bill <bill@gingerbill.org>2016-10-06 17:11:17 +0100
commit50301557b2425fc0b4dd213ad03fb635cbd6e454 (patch)
treebcb09c25f839099ac172529283bc7e4a147614d8 /src/exact_value.cpp
parentfee504636f9cd7633217e1877ee1b99e555bba63 (diff)
Untyped `nil`
Diffstat (limited to 'src/exact_value.cpp')
-rw-r--r--src/exact_value.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/exact_value.cpp b/src/exact_value.cpp
index 1d4c47520..6cdc0c033 100644
--- a/src/exact_value.cpp
+++ b/src/exact_value.cpp
@@ -275,6 +275,8 @@ ExactValue exact_binary_operator_value(Token op, ExactValue x, ExactValue y) {
switch (op.kind) {
case Token_CmpAnd: return make_exact_value_bool(x.value_bool && y.value_bool);
case Token_CmpOr: return make_exact_value_bool(x.value_bool || y.value_bool);
+ case Token_And: return make_exact_value_bool(x.value_bool & y.value_bool);
+ case Token_Or: return make_exact_value_bool(x.value_bool | y.value_bool);
default: goto error;
}
break;