From e21da906a4a28f5cc5228f5695eeeb31d74d2d5f Mon Sep 17 00:00:00 2001 From: "cykesiopka.bmo@gmail.com" Date: Sun, 12 Feb 2017 18:40:09 +0200 Subject: [PATCH] Bug 1338518, add missing {}, r=smaug --- dom/base/nsJSEnvironment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/base/nsJSEnvironment.cpp b/dom/base/nsJSEnvironment.cpp index d2e56e8160f4..9689cc4df8c1 100644 --- a/dom/base/nsJSEnvironment.cpp +++ b/dom/base/nsJSEnvironment.cpp @@ -2326,9 +2326,10 @@ SetMemoryGCSliceTimePrefChangedCallback(const char* aPrefName, void* aClosure) { int32_t pref = Preferences::GetInt(aPrefName, -1); // handle overflow and negative pref values - if (pref > 0 && pref < 100000) + if (pref > 0 && pref < 100000) { sActiveIntersliceGCBudget = pref; JS_SetGCParameter(sContext, JSGC_SLICE_TIME_BUDGET, pref); + } } static void