Browse Source

* also count the use of enum syms in preprocessor expressions correctly

florian 2 years ago
parent
commit
ece59f2534
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/scanner.pas

+ 1 - 1
compiler/scanner.pas

@@ -2140,7 +2140,7 @@ type
                                   begin
                                   begin
                                     result.free;
                                     result.free;
                                     result:=texprvalue.create_int(tenumsym(srsym).value);
                                     result:=texprvalue.create_int(tenumsym(srsym).value);
-//                                    tconstsym(srsym).IncRefCount;
+                                    tenumsym(srsym).IncRefCount;
                                   end;
                                   end;
                                 else
                                 else
                                   ;
                                   ;