зеркало из https://github.com/mozilla/gecko-dev.git
Bug 823187: In nsSHistory::EvictOutOfRangeWindowContentViewers(), declare loop variable as signed, to fix signed/unsigned comparison build warning. r=jlebar
This commit is contained in:
Родитель
a1c25f88aa
Коммит
7e51858e25
|
@ -968,7 +968,7 @@ nsSHistory::EvictOutOfRangeWindowContentViewers(int32_t aIndex)
|
||||||
nsCOMArray<nsIContentViewer> safeViewers;
|
nsCOMArray<nsIContentViewer> safeViewers;
|
||||||
nsCOMPtr<nsISHTransaction> trans;
|
nsCOMPtr<nsISHTransaction> trans;
|
||||||
GetTransactionAtIndex(startSafeIndex, getter_AddRefs(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);
|
nsCOMPtr<nsIContentViewer> viewer = GetContentViewerForTransaction(trans);
|
||||||
safeViewers.AppendObject(viewer);
|
safeViewers.AppendObject(viewer);
|
||||||
nsISHTransaction *temp = trans;
|
nsISHTransaction *temp = trans;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче