fixing crasher due to outbounds index in nsCSSStyleSheet.cpp; b=151198, r=brade, sr=jst

This commit is contained in:
glazman%netscape.com 2002-06-13 08:29:51 +00:00
parent d217f231ad
commit 2bc07ba87c
2 changed files with 2 additions and 2 deletions

View File

@ -2470,7 +2470,7 @@ static void
ListRules(nsISupportsArray* aRules, FILE* aOut, PRInt32 aIndent) ListRules(nsISupportsArray* aRules, FILE* aOut, PRInt32 aIndent)
{ {
PRUint32 count; PRUint32 count;
PRUint32 index; PRInt32 index;
if (aRules) { if (aRules) {
aRules->Count(&count); aRules->Count(&count);
for (index = count - 1; index >= 0; --index) { for (index = count - 1; index >= 0; --index) {

View File

@ -2470,7 +2470,7 @@ static void
ListRules(nsISupportsArray* aRules, FILE* aOut, PRInt32 aIndent) ListRules(nsISupportsArray* aRules, FILE* aOut, PRInt32 aIndent)
{ {
PRUint32 count; PRUint32 count;
PRUint32 index; PRInt32 index;
if (aRules) { if (aRules) {
aRules->Count(&count); aRules->Count(&count);
for (index = count - 1; index >= 0; --index) { for (index = count - 1; index >= 0; --index) {