mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 726417: Signed/unsigned comparison in nsCacheMetaData::UnflattenMetaData r=jduell
This commit is contained in:
parent
dc41bd4904
commit
1e8da7ac11
2
netwerk/cache/nsCacheMetaData.cpp
vendored
2
netwerk/cache/nsCacheMetaData.cpp
vendored
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user