Fix BigInt normalization issue #293

This commit is contained in:
gingerBill
2018-12-08 11:25:35 +00:00
parent ff6ec860b3
commit bd62bceca6
3 changed files with 28 additions and 6 deletions
+1 -1
View File
@@ -553,7 +553,7 @@ ExactValue exact_binary_operator_value(TokenKind op, ExactValue x, ExactValue y)
case Token_Shr: big_int_shr(&c, a, b); break;
default: goto error;
}
big_int_normalize(&c);
ExactValue res = {ExactValue_Integer};
res.value_integer = c;
return res;