From df1404e14ba5895bfde27a9957036e5577898495 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 13 Jan 2021 06:00:29 -0800 Subject: [PATCH] Type fixes --- IDEHelper/Compiler/CeMachine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IDEHelper/Compiler/CeMachine.cpp b/IDEHelper/Compiler/CeMachine.cpp index c16a7f3d..b07fe695 100644 --- a/IDEHelper/Compiler/CeMachine.cpp +++ b/IDEHelper/Compiler/CeMachine.cpp @@ -3308,7 +3308,7 @@ bool CeContext::WriteConstant(BfModule* module, addr_ce addr, BfConstant* consta } } - if (constant->mConstType == BfTypeCode_StringId) + if (constant->mTypeCode == BfTypeCode_StringId) { addr_ce strAddr = GetString(constant->mInt32); @@ -6460,7 +6460,7 @@ BfMethodInstance* CeMachine::GetMethodInstance(int64 methodHandle) { BfMethodInstance* methodInstance = (BfMethodInstance*)(intptr)methodHandle; if (!mMethodInstanceSet.Contains(methodInstance)) - return false; + return NULL; return methodInstance; }