Bug 830479. Fix fatal build warning about unsigned/signed comparison on CLOSED TREE. r=me

This commit is contained in:
Timothy Nikkel 2013-02-14 11:57:50 -06:00
Родитель ba696f2d76
Коммит ab470235f5
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -2400,7 +2400,7 @@ GetScrollPortSizeExcludingHeadersAndFooters(nsIFrame* aViewportFrame,
list.Sort(TopComparator());
nscoord headerBottom = 0;
for (int32_t i = 0; i < list.Length(); ++i) {
for (uint32_t i = 0; i < list.Length(); ++i) {
if (list[i].top <= headerBottom) {
headerBottom = std::max(headerBottom, list[i].bottom);
}
@ -2408,7 +2408,7 @@ GetScrollPortSizeExcludingHeadersAndFooters(nsIFrame* aViewportFrame,
list.Sort(ReverseBottomComparator());
nscoord footerTop = aScrollPort.height;
for (int32_t i = 0; i < list.Length(); ++i) {
for (uint32_t i = 0; i < list.Length(); ++i) {
if (list[i].bottom >= footerTop) {
footerTop = std::min(footerTop, list[i].top);
}