mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 01:29:29 +02:00
* fixed inc/dec with constant truncating the high parts of the constant on
16-bit and 8-bit CPUs git-svn-id: trunk@26908 -
This commit is contained in:
parent
fc29e10349
commit
6e9083aa84
@ -431,7 +431,12 @@ implementation
|
||||
else
|
||||
{$endif not cpu64bitalu}
|
||||
hlcg.a_op_const_loc(current_asmdata.CurrAsmList,addsubop[inlinenumber],left.resultdef,
|
||||
aint(addvalue.svalue),tcallparanode(left).left.location);
|
||||
{$ifdef cpu64bitalu}
|
||||
aint(addvalue.svalue),
|
||||
{$else cpu64bitalu}
|
||||
longint(addvalue.svalue), // can't use aint, because it breaks 16-bit and 8-bit CPUs
|
||||
{$endif cpu64bitalu}
|
||||
tcallparanode(left).left.location);
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user