From 1b22a5e3c5ef281bca366b3a13eb4c49ba079cd9 Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Sun, 19 May 2024 21:38:19 +0200 Subject: [PATCH] Fix constant fold error --- oscar64/Declaration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar64/Declaration.cpp b/oscar64/Declaration.cpp index 2c040ae..bf87705 100644 --- a/oscar64/Declaration.cpp +++ b/oscar64/Declaration.cpp @@ -647,7 +647,7 @@ Expression* Expression::ConstantFold(Errors * errors, LinkerSection * dataSectio ex->mDecType = mDecType; return ex; } - return mLeft; + return this; } #endif else if (mType == EX_TYPECAST && mLeft->mType == EX_CONSTANT)