浏览代码

* Fixed CompareDWord after r8827 (compiler warnings should not be ignored :).

git-svn-id: trunk@9038 -
yury 18 年之前
父节点
当前提交
5e9dd6cd4c
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      rtl/inc/generic.inc

+ 3 - 3
rtl/inc/generic.inc

@@ -491,7 +491,7 @@ function CompareDWord(Const buf1,buf2;len:SizeInt):SizeInt;
 var
 var
   aligncount : sizeint;
   aligncount : sizeint;
   psrc,pdest,pend : pdword;
   psrc,pdest,pend : pdword;
-  b : ptruint;
+  b : ptrint;
 begin
 begin
   b:=0;
   b:=0;
   psrc:=@buf1;
   psrc:=@buf1;
@@ -543,7 +543,7 @@ begin
   if ((PtrUInt(pdest) and 3) or (PtrUInt(psrc) and 3))<>0 then
   if ((PtrUInt(pdest) and 3) or (PtrUInt(psrc) and 3))<>0 then
     while psrc<pend do
     while psrc<pend do
       begin
       begin
-        b:=(ptruint(unaligned(psrc^))-ptruint(unaligned(pdest^)));
+        b:=(ptrint(unaligned(psrc^))-ptrint(unaligned(pdest^)));
         if b<>0 then
         if b<>0 then
           begin
           begin
             if b<0 then
             if b<0 then
@@ -558,7 +558,7 @@ begin
 {$endif FPC_REQUIRES_PROPER_ALIGNMENT}
 {$endif FPC_REQUIRES_PROPER_ALIGNMENT}
     while psrc<pend do
     while psrc<pend do
       begin
       begin
-        b:=(ptruint(psrc^)-ptruint(pdest^));
+        b:=(ptrint(psrc^)-ptrint(pdest^));
         if b<>0 then
         if b<>0 then
           begin
           begin
             if b<0 then
             if b<0 then