From c053f13e4f7ae8eab5740230795493821d35bf3a Mon Sep 17 00:00:00 2001 From: Joseph Poirier Date: Thu, 11 Jan 2018 21:49:58 -0600 Subject: [PATCH] back to original left shift code due to test regression from commit ba652ebe584 --- expression.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/expression.c b/expression.c index 43d0ac6..cf3e8b9 100644 --- a/expression.c +++ b/expression.c @@ -1075,11 +1075,13 @@ void ExpressionInfixOperator(struct ParseState *Parser, ResultInt = BottomInt >= TopInt; break; case TokenShiftLeft: - //ResultInt = BottomInt << TopInt; + ResultInt = BottomInt << TopInt; + /* if (BottomValue->Typ->Base == TypeUnsignedInt || BottomValue->Typ->Base == TypeUnsignedLong) ResultInt = (uint64_t) BottomInt >> TopInt; else ResultInt = BottomInt >> TopInt; + */ break; case TokenShiftRight: ResultInt = BottomInt >> TopInt;