Fixing compiler warning. r=timeless.

This commit is contained in:
bzbarsky%mit.edu 2002-12-03 15:14:00 +00:00
Родитель 7f55e7fd83
Коммит fdd22598ca
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -230,7 +230,7 @@ nsDOMStyleSheetList::Item(PRUint32 aIndex, nsIDOMStyleSheet** aReturn)
if (mDocument) {
PRInt32 count = 0;
mDocument->GetNumberOfStyleSheets(PR_FALSE, &count);
if (aIndex < count) {
if (aIndex < (PRUint32)count) {
nsCOMPtr<nsIStyleSheet> sheet;
mDocument->GetStyleSheetAt(aIndex, PR_FALSE, getter_AddRefs(sheet));
NS_ASSERTION(sheet, "Must have a sheet");