diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 003266720071..2de06e23c900 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -3597,8 +3597,7 @@ nsDocShell::GetChildAt(int32_t aIndex, nsIDocShellTreeItem ** aChild) #ifdef DEBUG if (aIndex < 0) { NS_WARNING("Negative index passed to GetChildAt"); - } - else if (aIndex >= mChildList.Length()) { + } else if (static_cast(aIndex) >= mChildList.Length()) { NS_WARNING("Too large an index passed to GetChildAt"); } #endif