PRUint32 cnt; nsresult rv = mDomSelection->mRangeArray->Count(&cnt); if (NS_FAILED(rv)) return rv; if (mIndex < (PRInt32)cnt)
PRInt32 cnt = mDomSelection->mRangeArray.Count(); if (mIndex < cnt)
nsSelectionIterator::Next(){  mIndex++;  PRUint32 cnt;  nsresult rv = mDomSelection->mRangeArray->Count(&cnt);  if (NS_FAILED(rv)) return rv;  if (mIndex < (PRInt32)cnt)    return NS_OK;  return NS_ERROR_FAILURE;}