1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed sign extension error

This commit is contained in:
Brian Fiete 2020-03-20 09:22:53 -07:00
parent 2fdb6ddff6
commit b16ff3048a

View file

@ -7389,7 +7389,7 @@ DbgTypedValue DbgExprEvaluator::MatchMethod(BfAstNode* targetSrc, DbgTypedValue
{ {
if ((argValues.size() == 2) && (argValues[0]) && (argValues[1])) if ((argValues.size() == 2) && (argValues[0]) && (argValues[1]))
{ {
uint64 val = (uint64)argValues[0].GetInt64(); uint64 val = argValues[0].mUInt64;
int bitCount = (int)argValues[1].GetInt64(); int bitCount = (int)argValues[1].GetInt64();
DbgTypedValue result; DbgTypedValue result;
@ -7402,7 +7402,7 @@ DbgTypedValue DbgExprEvaluator::MatchMethod(BfAstNode* targetSrc, DbgTypedValue
{ {
if ((argValues.size() == 2) && (argValues[0]) && (argValues[1])) if ((argValues.size() == 2) && (argValues[0]) && (argValues[1]))
{ {
uint64 val = (uint64)argValues[0].GetInt64(); uint64 val = argValues[0].mUInt64;
int bitCount = (int)argValues[1].GetInt64(); int bitCount = (int)argValues[1].GetInt64();
if (bitCount <= 0) if (bitCount <= 0)