Browse Source

* typeconvnodes are only equal if also their result type is equal

git-svn-id: trunk@14690 -
florian 15 years ago
parent
commit
3c7f726f98
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/ncnv.pas

+ 2 - 1
compiler/ncnv.pas

@@ -3018,7 +3018,8 @@ implementation
       begin
       begin
         docompare :=
         docompare :=
           inherited docompare(p) and
           inherited docompare(p) and
-          (convtype = ttypeconvnode(p).convtype);
+          (convtype = ttypeconvnode(p).convtype) and
+          equal_defs(resultdef,left.resultdef);
       end;
       end;