зеркало из https://github.com/mozilla/pjs.git
Bug 726417: Signed/unsigned comparison in nsCacheMetaData::UnflattenMetaData r=jduell
This commit is contained in:
Родитель
276f810607
Коммит
fa76bd85bf
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче