Possible misuse of comma operator here

leveldb now builds without warnings after a pod update to version 1.20 of the leveldb-library CocoaPod.


This solution works for me.

Code:

 if (++keyIndexValue == [self.str length])
    keyIndexValue = 0, keyPtr = keyData;

I've solved it by splitting the statements over multiple lines within the "if" condition:

"If at end of key data, reset count and set key pointer back to start of key value"

if (++keyIndexValue == [self.str length])
{
   keyIndexValue = 0;
   keyPtr = keyData;
}