瀏覽代碼

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

florian 2 年之前
父節點
當前提交
2b77f2ab3e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
                                   ;