Pārlūkot izejas kodu

* don't internalerror when converting to an open array and passing as
var/out parameter (these conversions are replaced by another
construct on non-JVM targets, so didn't cause a problem there)

git-svn-id: branches/jvmbackend@18555 -

Jonas Maebe 14 gadi atpakaļ
vecāks
revīzija
60f8254d63
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      compiler/ncnv.pas

+ 2 - 0
compiler/ncnv.pas

@@ -3347,6 +3347,8 @@ implementation
         { the same goes for changing the sign of equal-sized values which
         { the same goes for changing the sign of equal-sized values which
           are smaller than an entire register }
           are smaller than an entire register }
         if result and
         if result and
+           { don't try to check the size of an open array }
+           is_open_array(resultdef) or
            (resultdef.size<left.resultdef.size) or
            (resultdef.size<left.resultdef.size) or
            ((resultdef.size=left.resultdef.size) and
            ((resultdef.size=left.resultdef.size) and
             (left.resultdef.size<sizeof(aint)) and
             (left.resultdef.size<sizeof(aint)) and