summaryrefslogtreecommitdiff
path: root/src/T2DLL/LComparator.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-01 23:04:04 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-01 23:04:04 +0100
commitc2efba6907fab934a04959b9bb644cf7141cc955 (patch)
treec047244f99870e44a7a5d7e733c2857434c03765 /src/T2DLL/LComparator.cpp
parent1eb8da84d77d0c865623421069ec38bfc7b0d461 (diff)
downloadt2win-c2efba6907fab934a04959b9bb644cf7141cc955.tar.gz
t2win-c2efba6907fab934a04959b9bb644cf7141cc955.zip
matched T2DLL as well as i can
Diffstat (limited to '')
-rw-r--r--src/T2DLL/LComparator.cpp10
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;
}