* avoid conversion to larger type in Align

git-svn-id: trunk@34940 -
This commit is contained in:
florian 2016-11-20 19:02:53 +00:00
parent 01e1e9410d
commit 86f0b59095

View File

@ -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;