From 2abfb422b2b99ebc32c16b4f1ec6d14e54572085 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 19 May 2010 16:37:10 -0400 Subject: [PATCH] Bug 564689 - Signed/unsigned comparison warnings in nsComponentManager.cpp r=bsmedberg --HG-- extra : rebase_source : 9d74a7a43a729ce9e0f96bd98992e6359da23322 --- xpcom/components/nsComponentManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xpcom/components/nsComponentManager.cpp b/xpcom/components/nsComponentManager.cpp index 9bc11fbe7a65..6dc878db0a49 100644 --- a/xpcom/components/nsComponentManager.cpp +++ b/xpcom/components/nsComponentManager.cpp @@ -2752,7 +2752,7 @@ nsComponentManagerImpl::LoaderForType(LoaderType aType) if (aType == NS_LOADER_TYPE_NATIVE) return &mNativeModuleLoader; - NS_ASSERTION(aType >= 0 && aType < mLoaderData.Length(), + NS_ASSERTION(aType >= 0 && PRUint32(aType) < mLoaderData.Length(), "LoaderType out of range"); if (!mLoaderData[aType].loader) { @@ -3259,7 +3259,7 @@ nsComponentManagerImpl::LoadDeferredModules(nsTArray &aDeferred) lastCount = aDeferred.Length(); - for (PRInt32 i = 0; i < aDeferred.Length(); ) { + for (PRUint32 i = 0; i < aDeferred.Length(); ) { DeferredModule &d = aDeferred[i]; nsresult rv = d.module->RegisterSelf(this, d.file, @@ -3303,7 +3303,7 @@ nsComponentManagerImpl::AutoUnregisterComponent(PRInt32 /* unused */, nsCOMPtr module; rv = mNativeModuleLoader.LoadModule(lf, getter_AddRefs(module)); if (NS_FAILED(rv)) { - for (LoaderType i = 0; i < mLoaderData.Length(); ++i) { + for (LoaderType i = 0; PRUint32(i) < mLoaderData.Length(); ++i) { nsIModuleLoader* loader = LoaderForType(i); if (!loader) continue;