浏览代码

* fixup for r32338: to reset a typeconvn, its convtype must also be set
back to tc_none

git-svn-id: trunk@32342 -

Jonas Maebe 9 年之前
父节点
当前提交
18ad8fc004
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/ncnv.pas

+ 1 - 0
compiler/ncnv.pas

@@ -2601,6 +2601,7 @@ implementation
               { may change the type conversion, e.g. if the old conversion was
               { may change the type conversion, e.g. if the old conversion was
                 from 64 bit to a 64 bit, and now becomes 64 bit to 32 bit }
                 from 64 bit to a 64 bit, and now becomes 64 bit to 32 bit }
               n.resultdef:=nil;
               n.resultdef:=nil;
+              ttypeconvnode(n).convtype:=tc_none;
               typecheckpass(n);
               typecheckpass(n);
             end;
             end;
           else
           else