فهرست منبع

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

git-svn-id: branches/jvmbackend@18813 -
Jonas Maebe 14 سال پیش
والد
کامیت
54f9947406
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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;