From c2efba6907fab934a04959b9bb644cf7141cc955 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 23:04:04 +0100 Subject: matched T2DLL as well as i can --- src/T2DLL/LComparator.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/T2DLL/LComparator.cpp') diff --git a/src/T2DLL/LComparator.cpp b/src/T2DLL/LComparator.cpp index 649075d..16e25cd 100644 --- a/src/T2DLL/LComparator.cpp +++ b/src/T2DLL/LComparator.cpp @@ -12,16 +12,16 @@ LComparator::LComparator() { /*virtual*/ int LComparator::Compare(const void* inItemOne, const void* inItemTwo, unsigned int inSizeOne, unsigned int inSizeTwo) const { const unsigned char *a = (const unsigned char *) inItemOne; const unsigned char *b = (const unsigned char *) inItemTwo; - unsigned int size = inSizeOne; + unsigned int theSize = inSizeOne; if (inSizeTwo < inSizeOne) - size = inSizeTwo; + theSize = inSizeTwo; - while (size > 0) { + while (theSize > 0) { if (*a != *b) return *a - *b; a++; b++; - size--; + theSize--; } return inSizeOne - inSizeTwo; @@ -75,5 +75,5 @@ LLongComparator* LLongComparator::GetComparator() { } /*virtual*/ LComparator* LLongComparator::Clone() { - return new LLongComparator; + return new LComparator; } -- cgit v1.2.3