Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
This commit is contained in:
@@ -36,7 +36,7 @@ nsHtml5StringParser::ParseFragment(const nsAString& aSourceBuffer,
|
||||
bool aQuirks,
|
||||
bool aPreventScriptExecution)
|
||||
{
|
||||
NS_ENSURE_TRUE(aSourceBuffer.Length() <= PR_INT32_MAX,
|
||||
NS_ENSURE_TRUE(aSourceBuffer.Length() <= INT32_MAX,
|
||||
NS_ERROR_OUT_OF_MEMORY);
|
||||
|
||||
nsIDocument* doc = aTargetNode->OwnerDoc();
|
||||
@@ -73,7 +73,7 @@ nsHtml5StringParser::ParseDocument(const nsAString& aSourceBuffer,
|
||||
{
|
||||
MOZ_ASSERT(!aTargetDoc->GetFirstChild());
|
||||
|
||||
NS_ENSURE_TRUE(aSourceBuffer.Length() <= PR_INT32_MAX,
|
||||
NS_ENSURE_TRUE(aSourceBuffer.Length() <= INT32_MAX,
|
||||
NS_ERROR_OUT_OF_MEMORY);
|
||||
|
||||
mTreeBuilder->setFragmentContext(nullptr,
|
||||
|
||||
Reference in New Issue
Block a user