Fix select operator for string constants

This commit is contained in:
drmortalwombat 2023-01-08 22:29:13 +01:00
parent b04f05b575
commit 9a64bcc8b6

View File

@ -2818,8 +2818,6 @@ InterCodeGenerator::ExValue InterCodeGenerator::TranslateExpression(Declaration*
vr = TranslateExpression(procType, proc, block, exp->mRight->mRight, breakBlock, continueBlock, inlineMapper);
vc = Dereference(proc, exp, block, vc);
vl = Dereference(proc, exp, block, vl);
vr = Dereference(proc, exp, block, vr);
int ttemp;
InterType ttype, stypel, styper;
@ -2858,6 +2856,8 @@ InterCodeGenerator::ExValue InterCodeGenerator::TranslateExpression(Declaration*
}
else
{
vl = Dereference(proc, exp, block, vl);
vr = Dereference(proc, exp, block, vr);
if (stypel == styper)
{