From ece59f25341cc47a1f3c38919844ca5b0904af2e Mon Sep 17 00:00:00 2001 From: florian Date: Thu, 16 Feb 2023 23:01:40 +0100 Subject: [PATCH] * also count the use of enum syms in preprocessor expressions correctly --- compiler/scanner.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/scanner.pas b/compiler/scanner.pas index ed6e368c90..c3ad68f43d 100644 --- a/compiler/scanner.pas +++ b/compiler/scanner.pas @@ -2140,7 +2140,7 @@ type begin result.free; result:=texprvalue.create_int(tenumsym(srsym).value); -// tconstsym(srsym).IncRefCount; + tenumsym(srsym).IncRefCount; end; else ;