Sfoglia il codice sorgente

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

florian 2 anni fa
parent
commit
2b77f2ab3e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      compiler/scanner.pas

+ 1 - 1
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
                                   ;