git-svn-id: trunk@40449 - (cherry picked from commit 90557f2e6203427f135eecf9f56ae8eaab5c1ced)
@@ -59,7 +59,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