Fix select operator for string constants
This commit is contained in:
parent
b04f05b575
commit
9a64bcc8b6
|
@ -2818,8 +2818,6 @@ InterCodeGenerator::ExValue InterCodeGenerator::TranslateExpression(Declaration*
|
||||||
vr = TranslateExpression(procType, proc, block, exp->mRight->mRight, breakBlock, continueBlock, inlineMapper);
|
vr = TranslateExpression(procType, proc, block, exp->mRight->mRight, breakBlock, continueBlock, inlineMapper);
|
||||||
|
|
||||||
vc = Dereference(proc, exp, block, vc);
|
vc = Dereference(proc, exp, block, vc);
|
||||||
vl = Dereference(proc, exp, block, vl);
|
|
||||||
vr = Dereference(proc, exp, block, vr);
|
|
||||||
|
|
||||||
int ttemp;
|
int ttemp;
|
||||||
InterType ttype, stypel, styper;
|
InterType ttype, stypel, styper;
|
||||||
|
@ -2858,6 +2856,8 @@ InterCodeGenerator::ExValue InterCodeGenerator::TranslateExpression(Declaration*
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
vl = Dereference(proc, exp, block, vl);
|
||||||
|
vr = Dereference(proc, exp, block, vr);
|
||||||
|
|
||||||
if (stypel == styper)
|
if (stypel == styper)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue