From 230142f08b59686e6f0e350e56644015ba05b678 Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 13 Dec 2009 11:42:05 +0000 Subject: [PATCH] * change length parameter of CompareMem/CompareMemRange into PtrUInt, resolves #15190 * use CompareByte inside these routines instead of simple handmade code git-svn-id: trunk@14435 - --- rtl/objpas/sysutils/sysstr.inc | 33 +++++---------------------------- rtl/objpas/sysutils/sysstrh.inc | 4 ++-- 2 files changed, 7 insertions(+), 30 deletions(-) diff --git a/rtl/objpas/sysutils/sysstr.inc b/rtl/objpas/sysutils/sysstr.inc index 9894a88b37..83cbf3083e 100644 --- a/rtl/objpas/sysutils/sysstr.inc +++ b/rtl/objpas/sysutils/sysstr.inc @@ -159,37 +159,14 @@ end; P1 > P2 > 0 P1 = P2 = 0 } -function CompareMemRange(P1, P2: Pointer; Length: cardinal): integer; - -var - i: cardinal; - +function CompareMemRange(P1, P2: Pointer; Length: PtrUInt): integer;{$ifdef SYSUTILSINLINE}inline;{$endif} begin - i := 0; - result := 0; - while (result=0) and (I(P2) then - While Result and (i