зеркало из https://github.com/mozilla/pjs.git
Bug 747469: Add PRInt32 cast to make bounds-check effective, in nsHTMLDocument::ChangeContentEditableCount. r=ehsan
This commit is contained in:
Родитель
cbb01d0bcd
Коммит
527389324b
|
@ -2305,7 +2305,7 @@ nsresult
|
|||
nsHTMLDocument::ChangeContentEditableCount(nsIContent *aElement,
|
||||
PRInt32 aChange)
|
||||
{
|
||||
NS_ASSERTION(mContentEditableCount + aChange >= 0,
|
||||
NS_ASSERTION(PRInt32(mContentEditableCount) + aChange >= 0,
|
||||
"Trying to decrement too much.");
|
||||
|
||||
mContentEditableCount += aChange;
|
||||
|
|
Загрузка…
Ссылка в новой задаче