Bug 726417: Signed/unsigned comparison in nsCacheMetaData::UnflattenMetaData r=jduell

This commit is contained in:
Ms2ger 2012-02-13 11:32:31 -08:00
parent dc41bd4904
commit 1e8da7ac11

View File

@ -141,7 +141,7 @@ nsCacheMetaData::UnflattenMetaData(const char * data, PRUint32 size)
// Check that there are an even number of zero bytes
// to match the pattern { key \0 value \0 }
bool odd = false;
for (int i = 0; i < size; i++) {
for (PRUint32 i = 0; i < size; i++) {
if (data[i] == '\0')
odd = !odd;
}