Explorar o código

* properly force the result type after r45217

git-svn-id: trunk@45220 -
florian %!s(int64=5) %!d(string=hai) anos
pai
achega
de805fddcd
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;