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

Another const equality fix

This commit is contained in:
Brian Fiete 2020-03-11 09:08:30 -07:00
parent a713905411
commit 7788ff7ff1

View file

@ -403,7 +403,7 @@ int BfIRConstHolder::CheckConstEquality(BfIRValue lhs, BfIRValue rhs)
if ((constLHS->mTypeCode >= BfTypeCode_Boolean) && (constLHS->mTypeCode <= BfTypeCode_Double)) if ((constLHS->mTypeCode >= BfTypeCode_Boolean) && (constLHS->mTypeCode <= BfTypeCode_Double))
{ {
return (constLHS->mUInt64 == constRHS->mUInt16) ? 1 : 0; return (constLHS->mUInt64 == constRHS->mUInt64) ? 1 : 0;
} }
if (constLHS->mConstType == BfConstType_Array) if (constLHS->mConstType == BfConstType_Array)