Browse Source

* fixed compilation of length(unicode/ansistring) on JVM target after r25499
(we previously internally generated assigned(unicode/ansistring) nodes,
which now cause typecheck errors because there is no special assigned
handling anymore)

git-svn-id: trunk@25557 -

Jonas Maebe 12 years ago
parent
commit
20d6db20c8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/jvm/njvminl.pas

+ 1 - 1
compiler/jvm/njvminl.pas

@@ -578,7 +578,7 @@ implementation
             else
             else
               begin
               begin
                 lefttemp:=nil;
                 lefttemp:=nil;
-                stringtemp:=left;
+                stringtemp:=ctypeconvnode.create_explicit(left,stringclass);
               end;
               end;
             left:=nil;
             left:=nil;
             lentemp:=ctempcreatenode.create(s32inttype,s32inttype.size,tt_persistent,true);
             lentemp:=ctempcreatenode.create(s32inttype,s32inttype.size,tt_persistent,true);