From 7788ff7ff1b1d0e03d21e09933d5ab96c38901f6 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 11 Mar 2020 09:08:30 -0700 Subject: [PATCH] Another const equality fix --- IDEHelper/Compiler/BfIRBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDEHelper/Compiler/BfIRBuilder.cpp b/IDEHelper/Compiler/BfIRBuilder.cpp index f97af327..7b21734c 100644 --- a/IDEHelper/Compiler/BfIRBuilder.cpp +++ b/IDEHelper/Compiler/BfIRBuilder.cpp @@ -403,7 +403,7 @@ int BfIRConstHolder::CheckConstEquality(BfIRValue lhs, BfIRValue rhs) 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)