Parcourir la source

* no need to zero-extend after a load of a widechar

git-svn-id: branches/jvmbackend@18813 -
Jonas Maebe il y a 14 ans
Parent
commit
54f9947406
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      compiler/jvm/hlcgcpu.pas

+ 2 - 1
compiler/jvm/hlcgcpu.pas

@@ -1797,7 +1797,8 @@ implementation
           finishandval:=-1;
           { erase sign extension for byte/smallint loads }
           if (def2regtyp(def)=R_INTREGISTER) and
-             not is_signed(def) then
+             not is_signed(def) and
+             not is_widechar(def) then
             case def.size of
               1: finishandval:=255;
               2: finishandval:=65535;