Bug 823187: In nsSHistory::EvictOutOfRangeWindowContentViewers(), declare loop variable as signed, to fix signed/unsigned comparison build warning. r=jlebar

This commit is contained in:
Daniel Holbert 2012-12-19 13:12:48 -08:00
Родитель a1c25f88aa
Коммит 7e51858e25
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -968,7 +968,7 @@ nsSHistory::EvictOutOfRangeWindowContentViewers(int32_t aIndex)
nsCOMArray<nsIContentViewer> safeViewers;
nsCOMPtr<nsISHTransaction> 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<nsIContentViewer> viewer = GetContentViewerForTransaction(trans);
safeViewers.AppendObject(viewer);
nsISHTransaction *temp = trans;