Selaa lähdekoodia

- removed a useless condition in the check to determine whether or not
we have to generate an as-node for a type conversion

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

Jonas Maebe 14 vuotta sitten
vanhempi
commit
d74aef86b4
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. 1 3
      compiler/jvm/njvmcnv.pas

+ 1 - 3
compiler/jvm/njvmcnv.pas

@@ -496,9 +496,7 @@ implementation
             toarrtype:=jvmarrtype_setlength(todef);
             if (compare_defs(fromdef,todef,nothingn)<te_equal) and
                not fromdef.is_related(todef) and
-               (((fromdef.typ in [objectdef,recorddef,stringdef]) and
-                 not is_dynamic_array(fromdef)) or
-                (todef<>java_jlobject)) and
+               (todef<>java_jlobject) and
                ((fromarrtype in ['A','R']) or
                 (fromarrtype<>toarrtype)) then
               begin