Bug 957075 - Add missing parentheses, silence an MSVC warning. r=shu
authorJan de Mooij <jdemooij@mozilla.com>
Wed, 08 Jan 2014 12:46:52 +0100
changeset 162583 8c26da1b05ba37534454f466d184378cea8bc9f8
parent 162582 268795df42a173e29357b1e9e48d55a1c707658c
child 162584 b289ebad63f99348681e918beaad5e62c3882734
push id25960
push userryanvm@gmail.com
push dateWed, 08 Jan 2014 20:34:35 +0000
treeherdermozilla-central@0449f682dd31 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersshu
bugs957075
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 957075 - Add missing parentheses, silence an MSVC warning. r=shu
js/src/jscompartment.h
--- a/js/src/jscompartment.h
+++ b/js/src/jscompartment.h
@@ -497,17 +497,17 @@ class js::AutoDebugModeInvalidation
         return comp->zone() == zone_;
     }
 
     void scheduleInvalidation(bool debugMode) {
         // If we are scheduling invalidation for multiple compartments, they
         // must all agree on the toggle. This is so we can decide if we need
         // to invalidate on-stack scripts.
         MOZ_ASSERT_IF(needInvalidation_ != NoNeed,
-                      needInvalidation_ == debugMode ? ToggledOn : ToggledOff);
+                      needInvalidation_ == (debugMode ? ToggledOn : ToggledOff));
         needInvalidation_ = debugMode ? ToggledOn : ToggledOff;
     }
 };
 
 namespace js {
 
 inline bool
 ExclusiveContext::typeInferenceEnabled() const