浏览代码

* properly force the result type after r45217

git-svn-id: trunk@45220 -
florian 5 年之前
父节点
当前提交
de805fddcd
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      compiler/nbas.pas

+ 3 - 0
compiler/nbas.pas

@@ -757,6 +757,9 @@ implementation
           begin
             result:=tassignmentnode(a[1].left).right;
             tassignmentnode(a[1].left).right:=nil;
+            { ensure the node is first passed, so the resultdef does not get changed if the
+              the type conv. below is merged }
+            firstpass(result);
             result:=ctypeconvnode.create_internal(result,ttemprefnode(a[3].left).resultdef);
             firstpass(result);
             exit;