Fix const bool to int conversion in loop

This commit is contained in:
drmortalwombat 2024-11-16 13:48:47 +01:00
parent 3f2f703936
commit b6341e402d

View File

@ -8193,7 +8193,7 @@ void InterCodeBasicBlock::UpdateLocalIntegerRangeSetsForward(const GrowingVariab
ins->ConstantFolding();
if (ins->mDst.mTemp >= 0 && IsIntegerType(ins->mDst.mType))
if (ins->mDst.mTemp >= 0 && (IsIntegerType(ins->mDst.mType) || ins->mDst.mType == IT_BOOL))
{
IntegerValueRange& vr(mProc->mLocalValueRange[ins->mDst.mTemp]);
@ -22927,7 +22927,7 @@ void InterCodeProcedure::Close(void)
{
GrowingTypeArray tstack(IT_NONE);
CheckFunc = !strcmp(mIdent->mString, "game_walking");
CheckFunc = !strcmp(mIdent->mString, "main");
CheckCase = false;
mEntryBlock = mBlocks[0];