Bladeren bron

* fixed alignment leftover in compare

git-svn-id: trunk@8823 -
peter 18 jaren geleden
bovenliggende
commit
4f862a23a7
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      rtl/inc/generic.inc

+ 3 - 3
rtl/inc/generic.inc

@@ -348,7 +348,7 @@ begin
         end;
         end;
       { use sizeuint typecast to force shr optimization }
       { use sizeuint typecast to force shr optimization }
       pptruint(pend):=pptruint(psrc)+(sizeuint(len) div sizeof(ptruint));
       pptruint(pend):=pptruint(psrc)+(sizeuint(len) div sizeof(ptruint));
-      len:=len and (sizeof(PtrUInt)-1) shr 1;
+      len:=len and (sizeof(PtrUInt)-1);
       while psrc<pend do
       while psrc<pend do
         begin
         begin
           b:=(pptrint(psrc)^-pptrint(pdest)^);
           b:=(pptrint(psrc)^-pptrint(pdest)^);
@@ -414,7 +414,7 @@ begin
         end;
         end;
       { use sizeuint typecast to force shr optimization }
       { use sizeuint typecast to force shr optimization }
       pptruint(pend):=pptruint(psrc)+(sizeuint(len)*2 div sizeof(ptruint));
       pptruint(pend):=pptruint(psrc)+(sizeuint(len)*2 div sizeof(ptruint));
-      len:=len and (sizeof(PtrUInt)-1) shr 1;
+      len:=((len*2) and (sizeof(PtrUInt)-1)) shr 1;
       while psrc<pend do
       while psrc<pend do
         begin
         begin
           b:=(pptrint(psrc)^-pptrint(pdest)^);
           b:=(pptrint(psrc)^-pptrint(pdest)^);
@@ -481,7 +481,7 @@ begin
         end;
         end;
       { use sizeuint typecast to force shr optimization }
       { use sizeuint typecast to force shr optimization }
       pptruint(pend):=pptruint(psrc)+(sizeuint(len)*4 div sizeof(ptruint));
       pptruint(pend):=pptruint(psrc)+(sizeuint(len)*4 div sizeof(ptruint));
-      len:=len and (sizeof(PtrUInt)-1) shr 2;
+      len:=((len*4) and (sizeof(PtrUInt)-1)) shr 2;
       while psrc<pend do
       while psrc<pend do
         begin
         begin
           b:=(pptrint(psrc)^-pptrint(pdest)^);
           b:=(pptrint(psrc)^-pptrint(pdest)^);