mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-12 23:33:04 +01:00
* no need to zero-extend after a load of a widechar
git-svn-id: branches/jvmbackend@18813 -
This commit is contained in:
parent
c07c633b6a
commit
54f9947406
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user