2
0
Эх сурвалжийг харах

Remove unneeded, and possibly wrong typecast to fix cycle with -CR option

Pierre Muller 9 сар өмнө
parent
commit
74d2d2f0d8
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      compiler/scanner.pas

+ 1 - 1
compiler/scanner.pas

@@ -1874,7 +1874,7 @@ type
 
         procedure MarkSymbolAsUsed(sym: tsym);
           begin
-           tabstractvarsym(sym).IncRefCount;
+           sym.IncRefCount;
            { do we know an owner? }
            if Assigned(current_module) and Assigned(current_module.unitmap) and Assigned(sym.owner) then
              inc(current_module.unitmap[sym.owner.moduleid].refs);