瀏覽代碼

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

git-svn-id: trunk@14690 -
florian 15 年之前
父節點
當前提交
3c7f726f98
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/ncnv.pas

+ 2 - 1
compiler/ncnv.pas

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