fix: changes ^ to do xor

This commit is contained in:
Kobi Gurkan
2019-05-11 19:51:30 +03:00
parent 54092044ae
commit b8068e8d05
2 changed files with 2 additions and 2 deletions

View File

@@ -514,7 +514,7 @@ e12
: e12 '^' e11
{
if (($1.type == "NUMBER") && ($3.type == "NUMBER")) {
$$ = { type: "NUMBER", value: $1.value.or($3.value).and(__MASK__) };
$$ = { type: "NUMBER", value: $1.value.xor($3.value).and(__MASK__) };
} else {
$$ = { type: "OP", op: "^", values: [$1, $3] };
}