From 650ad3bf45144275240ae0805a40ba2721b46d19 Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Tue, 7 Oct 2003 22:43:54 +0000 Subject: [PATCH] what dbaron said --- content/html/document/src/nsHTMLDocument.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/html/document/src/nsHTMLDocument.cpp b/content/html/document/src/nsHTMLDocument.cpp index 26fdc703e9b..0bd94fa0bb3 100644 --- a/content/html/document/src/nsHTMLDocument.cpp +++ b/content/html/document/src/nsHTMLDocument.cpp @@ -1287,7 +1287,9 @@ PRInt32 nsHTMLDocument::InternalGetNumberOfStyleSheets() { PRInt32 count = mStyleSheets.Count(); - if (count != 0 && mStyleAttrStyleSheet == mStyleSheets[count - 1]) + if (count != 0 && + mStyleAttrStyleSheet == + NS_STATIC_CAST(nsIStyleSheet*, mStyleSheets[count - 1])) --count; --count; // for the attr sheet NS_ASSERTION(count >= 0, "Why did we end up with a negative count?");