Correct size of asizeint, which is still 4-byte long even when CpuAddrBitSize is 16 as for avr and i8086

git-svn-id: trunk@42609 -
This commit is contained in:
pierre 2019-08-09 09:29:50 +00:00
parent 39a8d06e8a
commit 651922c2f8

View File

@ -1990,11 +1990,12 @@ var
end
else if CpuAddrBitSize[cpu]=16 then
begin
var16:=unaligned(psmallint(@tokenbuf[tbi])^);
inc(tbi,sizeof(smallint));
{ ASizeInt is still a longint, see globtype.pas unit }
var32:=unaligned(plongint(@tokenbuf[tbi])^);
inc(tbi,sizeof(longint));
if ppufile.change_endian then
var16:=swapendian(var16);
result:=var16;
var32:=swapendian(var32);
result:=var32;
end
else
begin