Bug 561848 - signed/unsigned mismatch in nsNavHistoryContainerResultNode::GetChildIndex. r=dietrich

This commit is contained in:
Marco Bonardo 2010-04-27 13:25:20 +02:00
Родитель fd9f80195c
Коммит ea4adc76ab
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -1967,10 +1967,11 @@ nsNavHistoryContainerResultNode::GetChildIndex(nsINavHistoryResultNode* aNode,
if (!mExpanded)
return NS_ERROR_NOT_AVAILABLE;
*_retval = FindChild(static_cast<nsNavHistoryResultNode*>(aNode));
if (*_retval == -1)
PRInt32 nodeIndex = FindChild(static_cast<nsNavHistoryResultNode*>(aNode));
if (nodeIndex == -1)
return NS_ERROR_INVALID_ARG;
*_retval = nodeIndex;
return NS_OK;
}