From 0889a9533c982b264a1958ffdec40c0d6880ec08 Mon Sep 17 00:00:00 2001 From: Jason Orendorff Date: Fri, 18 Feb 2011 10:57:28 -0600 Subject: [PATCH] Silence MSVC warnings. no_r=me. --HG-- extra : rebase_source : edff65eb68b63b90603d552855023a63f2073626 --- js/src/jsdbgapi.cpp | 4 ++-- js/src/jstracer.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/jsdbgapi.cpp b/js/src/jsdbgapi.cpp index dc8dc803eda9..25a359c5bea4 100644 --- a/js/src/jsdbgapi.cpp +++ b/js/src/jsdbgapi.cpp @@ -145,7 +145,7 @@ CompartmentHasLiveScripts(JSCompartment *comp) JS_FRIEND_API(JSBool) JS_SetDebugModeForCompartment(JSContext *cx, JSCompartment *comp, JSBool debug) { - if (comp->debugMode == debug) + if (comp->debugMode == !!debug) return JS_TRUE; // This should only be called when no scripts are live. It would even be @@ -154,7 +154,7 @@ JS_SetDebugModeForCompartment(JSContext *cx, JSCompartment *comp, JSBool debug) JS_ASSERT(!CompartmentHasLiveScripts(comp)); // All scripts compiled from this point on should be in the requested debugMode. - comp->debugMode = debug; + comp->debugMode = !!debug; // Discard JIT code for any scripts that change debugMode. This function // assumes that 'comp' is in the same thread as 'cx'. diff --git a/js/src/jstracer.cpp b/js/src/jstracer.cpp index 79fddf099902..6ee512e81c1e 100644 --- a/js/src/jstracer.cpp +++ b/js/src/jstracer.cpp @@ -13802,7 +13802,7 @@ TraceRecorder::interpretedFunctionCall(Value& fval, JSFunction* fun, uintN argc, if (constructing) { LIns* thisobj_ins; CHECK_STATUS(createThis(fval.toObject(), get(&fval), &thisobj_ins)); - stack(-argc - 1, thisobj_ins); + stack(-int(argc) - 1, thisobj_ins); } // Generate a type map for the outgoing frame and stash it in the LIR