b=513807 comparison of unsigned expression >= 0 is always true when constructing nsGenConNodes r=dbaron

--HG--
extra : rebase_source : b4d995793272279136753949181b6c2793b111bf
This commit is contained in:
Karl Tomlinson 2009-09-03 08:45:43 +12:00
parent b23629e9fe
commit aaa7227840
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ struct nsCounterUseNode : public nsCounterNode {
, mCounterStyle(aCounterStyle)
, mAllCounters(aAllCounters)
{
NS_ASSERTION(aContentIndex >= 0, "out of range");
NS_ASSERTION(aContentIndex <= PR_INT32_MAX, "out of range");
}
virtual PRBool InitTextFrame(nsGenConList* aList,

View File

@ -59,7 +59,7 @@ struct nsQuoteNode : public nsGenConNode {
aType == eStyleContentType_NoOpenQuote ||
aType == eStyleContentType_NoCloseQuote,
"incorrect type");
NS_ASSERTION(aContentIndex >= 0, "out of range");
NS_ASSERTION(aContentIndex <= PR_INT32_MAX, "out of range");
}
virtual PRBool InitTextFrame(nsGenConList* aList,