diff --git a/mozilla/layout/base/nsPresShell.cpp b/mozilla/layout/base/nsPresShell.cpp index 91ff3bce57d..a0946254262 100644 --- a/mozilla/layout/base/nsPresShell.cpp +++ b/mozilla/layout/base/nsPresShell.cpp @@ -5302,7 +5302,9 @@ PresShell::ProcessReflowCommands(PRBool aInterruptible) ProcessReflowCommand(mReflowCommands, aInterruptible, desiredSize, maxSize, *rcx); if (aInterruptible) { LL_I2L(maxTime, gMaxRCProcessingTime); - if (LL_CMP(mAccumulatedReflowTime, >, maxTime)) + PRInt64 temp; + LL_I2L(temp, mAccumulatedReflowTime); + if (LL_CMP(temp, >, maxTime)) break; } } diff --git a/mozilla/layout/html/base/src/nsPresShell.cpp b/mozilla/layout/html/base/src/nsPresShell.cpp index 91ff3bce57d..a0946254262 100644 --- a/mozilla/layout/html/base/src/nsPresShell.cpp +++ b/mozilla/layout/html/base/src/nsPresShell.cpp @@ -5302,7 +5302,9 @@ PresShell::ProcessReflowCommands(PRBool aInterruptible) ProcessReflowCommand(mReflowCommands, aInterruptible, desiredSize, maxSize, *rcx); if (aInterruptible) { LL_I2L(maxTime, gMaxRCProcessingTime); - if (LL_CMP(mAccumulatedReflowTime, >, maxTime)) + PRInt64 temp; + LL_I2L(temp, mAccumulatedReflowTime); + if (LL_CMP(temp, >, maxTime)) break; } }