back to original left shift code due to test regression from commit ba652ebe584

This commit is contained in:
Joseph Poirier 2018-01-11 21:49:58 -06:00
parent a9e185ae4d
commit c053f13e4f
No known key found for this signature in database
GPG key ID: 65858A2540EBDA40

View file

@ -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;