Revert to memcmp comparison in SkipList

This commit is contained in:
Daniel Smith 2020-02-12 17:33:33 -05:00
parent 5c325940ab
commit 011e181183
1 changed files with 2 additions and 9 deletions

View File

@ -379,16 +379,9 @@ private:
};
static force_inline bool less( const uint8_t* a, int aLen, const uint8_t* b, int bLen ) {
int len = min(aLen, bLen);
for(int i=0; i<len; i++)
if (a[i] < b[i])
return true;
else if (a[i] > b[i])
return false;
/*int c = memcmp(a,b,min(aLen,bLen));
int c = memcmp(a,b,min(aLen,bLen));
if (c<0) return true;
if (c>0) return false;*/
if (c>0) return false;
return aLen < bLen;
}