diff options
Diffstat (limited to 'src/T2DLL/LComparator.cpp')
-rw-r--r-- | src/T2DLL/LComparator.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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; } |