Browse Source

* fixed typecasts between widechars and non-widechars in case an array
element is involved

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

Jonas Maebe 14 years ago
parent
commit
bb593346a9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/jvm/njvmcnv.pas

+ 2 - 2
compiler/jvm/njvmcnv.pas

@@ -518,8 +518,8 @@ implementation
         ressize:=resultdef.size;
         leftsize :=left.resultdef.size;
         if ((ressize<>leftsize) or
-            ((location.loc in [LOC_REFERENCE,LOC_CREFERENCE]) and
-             (location.reference.arrayreftype<>art_none) and
+            ((left.location.loc in [LOC_REFERENCE,LOC_CREFERENCE]) and
+             (left.location.reference.arrayreftype<>art_none) and
              (is_widechar(left.resultdef)<>is_widechar(resultdef))) or
             is_bitpacked_access(left)) and
            not is_void(left.resultdef) then