mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-10 01:26:03 +02:00
* avoid conversion to larger type in Align
git-svn-id: trunk@34940 -
This commit is contained in:
parent
01e1e9410d
commit
86f0b59095
@ -2044,7 +2044,7 @@ function align(addr : PtrUInt;alignment : PtrUInt) : PtrUInt;{$ifdef SYSTEMINLIN
|
||||
var
|
||||
tmp: PtrUInt;
|
||||
begin
|
||||
tmp:=addr+(alignment-1);
|
||||
tmp:=addr+PtrUInt(alignment-1);
|
||||
result:=tmp-(tmp mod alignment)
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user