From 9a64bcc8b61cc81dac922aaa7495589d217b2ef8 Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Sun, 8 Jan 2023 22:29:13 +0100 Subject: [PATCH] Fix select operator for string constants --- oscar64/InterCodeGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oscar64/InterCodeGenerator.cpp b/oscar64/InterCodeGenerator.cpp index e1afa0e..8cfcd6d 100644 --- a/oscar64/InterCodeGenerator.cpp +++ b/oscar64/InterCodeGenerator.cpp @@ -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) {