mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-15 23:50:29 +01:00
* Fixed CompareDWord after r8827 (compiler warnings should not be ignored :).
git-svn-id: trunk@9038 -
This commit is contained in:
parent
ad5ce1adf4
commit
5e9dd6cd4c
@ -491,7 +491,7 @@ function CompareDWord(Const buf1,buf2;len:SizeInt):SizeInt;
|
||||
var
|
||||
aligncount : sizeint;
|
||||
psrc,pdest,pend : pdword;
|
||||
b : ptruint;
|
||||
b : ptrint;
|
||||
begin
|
||||
b:=0;
|
||||
psrc:=@buf1;
|
||||
@ -543,7 +543,7 @@ begin
|
||||
if ((PtrUInt(pdest) and 3) or (PtrUInt(psrc) and 3))<>0 then
|
||||
while psrc<pend do
|
||||
begin
|
||||
b:=(ptruint(unaligned(psrc^))-ptruint(unaligned(pdest^)));
|
||||
b:=(ptrint(unaligned(psrc^))-ptrint(unaligned(pdest^)));
|
||||
if b<>0 then
|
||||
begin
|
||||
if b<0 then
|
||||
@ -558,7 +558,7 @@ begin
|
||||
{$endif FPC_REQUIRES_PROPER_ALIGNMENT}
|
||||
while psrc<pend do
|
||||
begin
|
||||
b:=(ptruint(psrc^)-ptruint(pdest^));
|
||||
b:=(ptrint(psrc^)-ptrint(pdest^));
|
||||
if b<>0 then
|
||||
begin
|
||||
if b<0 then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user