mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 21:09:07 +02:00
* properly calcualte aligncount as proposed by Jeppe, should resolve #33323
git-svn-id: trunk@40449 -
This commit is contained in:
parent
31ae109a31
commit
90557f2e62
@ -76,7 +76,7 @@ begin
|
|||||||
then
|
then
|
||||||
begin
|
begin
|
||||||
{ Align on native pointer size }
|
{ Align on native pointer size }
|
||||||
aligncount:=(PtrUInt(pdest) and (sizeof(PtrUInt)-1));
|
aligncount:=(sizeof(PtrUInt)-PtrInt(pdest)) and (sizeof(PtrUInt)-1);
|
||||||
dec(count,aligncount);
|
dec(count,aligncount);
|
||||||
pend:=psrc+aligncount;
|
pend:=psrc+aligncount;
|
||||||
while psrc<pend do
|
while psrc<pend do
|
||||||
|
Loading…
Reference in New Issue
Block a user