зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
314edcb51a
Коммит
87d4ee061f
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче