ソースを参照

* Suppress warnings

git-svn-id: trunk@15896 -
pierre 15 年 前
コミット
74a4b4cafc
1 ファイル変更4 行追加4 行削除
  1. 4 4
      compiler/optcse.pas

+ 4 - 4
compiler/optcse.pas

@@ -165,7 +165,7 @@ unit optcse;
                 if tnode(plists(arg)^.nodelist[i]).isequal(n) and DFASetIn(plists(arg)^.avail,i) then
                 if tnode(plists(arg)^.nodelist[i]).isequal(n) and DFASetIn(plists(arg)^.avail,i) then
                   begin
                   begin
                     { use always the first occurence }
                     { use always the first occurence }
-                    if ptrint(plists(arg)^.equalto[i])<>-1 then
+                    if plists(arg)^.equalto[i]<>pointer(-1) then
                       plists(arg)^.equalto[plists(arg)^.nodelist.count-1]:=plists(arg)^.equalto[i]
                       plists(arg)^.equalto[plists(arg)^.nodelist.count-1]:=plists(arg)^.equalto[i]
                     else
                     else
                       plists(arg)^.equalto[plists(arg)^.nodelist.count-1]:=pointer(i);
                       plists(arg)^.equalto[plists(arg)^.nodelist.count-1]:=pointer(i);
@@ -231,7 +231,7 @@ unit optcse;
                 for i:=0 to lists.nodelist.count-1 do
                 for i:=0 to lists.nodelist.count-1 do
                   begin
                   begin
                     { current node used more than once? }
                     { current node used more than once? }
-                    if ptrint(lists.refs[i])<>0 then
+                    if assigned(lists.refs[i]) then
                       begin
                       begin
                         if not(assigned(statements)) then
                         if not(assigned(statements)) then
                           begin
                           begin
@@ -263,7 +263,7 @@ unit optcse;
 {$endif csedebug}
 {$endif csedebug}
                       end
                       end
                     { current node reference to another node? }
                     { current node reference to another node? }
-                    else if ptrint(lists.equalto[i])<>-1 then
+                    else if lists.equalto[i]<>pointer(-1) then
                       begin
                       begin
 {$if defined(csedebug) or defined(csestats)}
 {$if defined(csedebug) or defined(csestats)}
                         printnode(output,tnode(lists.nodelist[i]));
                         printnode(output,tnode(lists.nodelist[i]));
@@ -281,7 +281,7 @@ unit optcse;
                   end;
                   end;
                 { clean up unused trees }
                 { clean up unused trees }
                 for i:=0 to lists.nodelist.count-1 do
                 for i:=0 to lists.nodelist.count-1 do
-                  if ptrint(lists.equalto[i])<>-1 then
+                  if lists.equalto[i]<>pointer(-1) then
                     tnode(lists.nodelist[i]).free;
                     tnode(lists.nodelist[i]).free;
 {$ifdef csedebug}
 {$ifdef csedebug}
                 writeln('nodes: ',lists.nodelist.count);
                 writeln('nodes: ',lists.nodelist.count);