diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-10-06 17:11:17 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-10-06 17:11:17 +0100 |
| commit | 50301557b2425fc0b4dd213ad03fb635cbd6e454 (patch) | |
| tree | bcb09c25f839099ac172529283bc7e4a147614d8 /src/exact_value.cpp | |
| parent | fee504636f9cd7633217e1877ee1b99e555bba63 (diff) | |
Untyped `nil`
Diffstat (limited to 'src/exact_value.cpp')
| -rw-r--r-- | src/exact_value.cpp | 2 |
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; |