Address clang warnings.
* Split off AIThreadSafeBitsPOD, because offsetof may only be used on POD types. * Added ASSERT_ONLY and ASSERT_ONLY_COMMA * Removed a few unused class members * Fixed a bug in AIHTTPReceivedHeaders::equal that more or less only compared the length of the headers before :/
This commit is contained in:
@@ -174,7 +174,7 @@ bool AIHTTPReceivedHeaders::equal(std::string const& key1, std::string const& ke
|
||||
}
|
||||
for (std::string::const_iterator i1 = key1.begin(), i2 = key2.begin(); i1 != key1.end(); ++i1, ++i2)
|
||||
{
|
||||
if ((*i1 ^ *i2) & 0xdf != 0)
|
||||
if (((*i1 ^ *i2) & 0xdf) != 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user