Fix signed unsigned char compare to promote to int
This commit is contained in:
parent
8f37df448f
commit
79ec9af3f2
|
@ -23581,7 +23581,7 @@ void InterCodeProcedure::Close(void)
|
||||||
{
|
{
|
||||||
GrowingTypeArray tstack(IT_NONE);
|
GrowingTypeArray tstack(IT_NONE);
|
||||||
|
|
||||||
CheckFunc = !strcmp(mIdent->mString, "check_mulli");
|
CheckFunc = !strcmp(mIdent->mString, "main");
|
||||||
CheckCase = false;
|
CheckCase = false;
|
||||||
|
|
||||||
mEntryBlock = mBlocks[0];
|
mEntryBlock = mBlocks[0];
|
||||||
|
|
|
@ -3586,6 +3586,8 @@ InterCodeGenerator::ExValue InterCodeGenerator::TranslateExpression(Declaration*
|
||||||
else
|
else
|
||||||
dtype = TheSignedIntTypeDeclaration;
|
dtype = TheSignedIntTypeDeclaration;
|
||||||
}
|
}
|
||||||
|
else if (vl.mType->mSize == 1 && vr.mType->mSize == 1 && ((vr.mType->mFlags & DTF_SIGNED) || (vl.mType->mFlags & DTF_SIGNED)))
|
||||||
|
dtype = TheSignedIntTypeDeclaration;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (vl.mType->mSize == 4 || vr.mType->mSize == 4)
|
if (vl.mType->mSize == 4 || vr.mType->mSize == 4)
|
||||||
|
|
Loading…
Reference in New Issue