From 8e7f46dc992f3eedbdb60a3675f42a0e9476a9f7 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Tue, 29 Dec 2015 00:33:32 -0600 Subject: [PATCH] Fix bug where globals or static variables initialized using pointer arithmetic on string constants could get the wrong value. This fixes the compca16.c test case. --- Parser.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parser.pas b/Parser.pas index 600cd1d..0d2c790 100644 --- a/Parser.pas +++ b/Parser.pas @@ -2035,7 +2035,7 @@ var end {else if} else if kind = stringConst then begin iPtr^.pval := offset; - iPtr^.pPlus := operator = plusch; + iPtr^.pPlus := true; iPtr^.isName := false; iPtr^.pStr := tree^.token.sval; end {else if}