Bug 615838 comparison between signed and unsigned integer expressions in nsMediaCache::FlushInternal. r=roc a=roc
authortimeless@mozdev.org
Fri, 03 Dec 2010 14:08:49 +1300
changeset 58523 95af6190017f0f997409fc07aae5c69d06d92086
parent 58522 f1a5bea1d022eedf7cd4c4a4edd7ebc3cf1d29d2
child 58524 d748232921a59df4a5fb7d8f4ddb209360d41c82
push id17334
push usercpearce@mozilla.com
push dateFri, 03 Dec 2010 01:21:22 +0000
treeherdermozilla-central@d748232921a5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, roc
bugs615838
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 615838 comparison between signed and unsigned integer expressions in nsMediaCache::FlushInternal. r=roc a=roc
content/media/nsMediaCache.cpp
--- a/content/media/nsMediaCache.cpp
+++ b/content/media/nsMediaCache.cpp
@@ -614,17 +614,17 @@ nsMediaCache::Flush()
   gMediaCache->FlushInternal();
 }
 
 void
 nsMediaCache::FlushInternal()
 {
   nsAutoMonitor mon(mMonitor);
 
-  for (PRInt32 blockIndex = 0; blockIndex < mIndex.Length(); ++blockIndex) {
+  for (PRUint32 blockIndex = 0; blockIndex < mIndex.Length(); ++blockIndex) {
     FreeBlock(blockIndex);
   }
 
   // Truncate file, close it, and reopen
   Truncate();
   NS_ASSERTION(mIndex.Length() == 0, "Blocks leaked?");
   if (mFD) {
     PR_Close(mFD);