From 7e51858e250a785d95790b66a68ecc6d6b15d86a Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Wed, 19 Dec 2012 13:12:48 -0800 Subject: [PATCH] Bug 823187: In nsSHistory::EvictOutOfRangeWindowContentViewers(), declare loop variable as signed, to fix signed/unsigned comparison build warning. r=jlebar --- docshell/shistory/src/nsSHistory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docshell/shistory/src/nsSHistory.cpp b/docshell/shistory/src/nsSHistory.cpp index ba5d4589e4d3..8c9f0db81c0f 100644 --- a/docshell/shistory/src/nsSHistory.cpp +++ b/docshell/shistory/src/nsSHistory.cpp @@ -968,7 +968,7 @@ nsSHistory::EvictOutOfRangeWindowContentViewers(int32_t aIndex) nsCOMArray safeViewers; nsCOMPtr trans; GetTransactionAtIndex(startSafeIndex, getter_AddRefs(trans)); - for (uint32_t i = startSafeIndex; trans && i <= endSafeIndex; i++) { + for (int32_t i = startSafeIndex; trans && i <= endSafeIndex; i++) { nsCOMPtr viewer = GetContentViewerForTransaction(trans); safeViewers.AppendObject(viewer); nsISHTransaction *temp = trans;