Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan

This commit is contained in:
Isaac Aggrey
2012-09-28 01:57:33 -05:00
parent 56e5a1bd47
commit 990e90e88a
230 changed files with 485 additions and 485 deletions

View File

@@ -47,7 +47,7 @@ PRUnichar nsHtml5Highlighter::sPi[] =
nsHtml5Highlighter::nsHtml5Highlighter(nsAHtml5TreeOpSink* aOpSink)
: mState(NS_HTML5TOKENIZER_DATA)
, mCStart(PR_INT32_MAX)
, mCStart(INT32_MAX)
, mPos(0)
, mLineNumber(1)
, mInlinesOpen(0)
@@ -87,8 +87,8 @@ nsHtml5Highlighter::Start(const nsAutoString& aTitle)
Push(nsGkAtoms::title, nullptr);
// XUL will add the "Source of: " prefix.
uint32_t length = aTitle.Length();
if (length > PR_INT32_MAX) {
length = PR_INT32_MAX;
if (length > INT32_MAX) {
length = INT32_MAX;
}
AppendCharacters(aTitle.get(), 0, (int32_t)length);
Pop(); // title