* properly calcualte aligncount as proposed by Jeppe, should resolve #33323

git-svn-id: trunk@40449 -
This commit is contained in:
florian 2018-12-02 14:49:24 +00:00
parent 31ae109a31
commit 90557f2e62

View File

@ -76,7 +76,7 @@ begin
then
begin
{ Align on native pointer size }
aligncount:=(PtrUInt(pdest) and (sizeof(PtrUInt)-1));
aligncount:=(sizeof(PtrUInt)-PtrInt(pdest)) and (sizeof(PtrUInt)-1);
dec(count,aligncount);
pend:=psrc+aligncount;
while psrc<pend do