зеркало из https://github.com/mozilla/gecko-dev.git
Fixing compiler warning. r=timeless.
This commit is contained in:
Родитель
7f55e7fd83
Коммит
fdd22598ca
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче