Bug 714580 - Remove extra parens from JS_ASSERT_IF; r=Waldo
authorMs2ger <ms2ger@gmail.com>
Mon, 02 Jan 2012 21:55:34 +0100
changeset 86097 f301341f2e02f2ad33525f616dac019dc0f1e158
parent 86096 7d23dd6c50ebb19e7edeb495367c55352bbc809c
child 86108 cb73188eedf8255c212e5a55c1d4826c916a6f9b
push idunknown
push userunknown
push dateunknown
reviewersWaldo
bugs714580
milestone12.0a1
Bug 714580 - Remove extra parens from JS_ASSERT_IF; r=Waldo
js/public/Utility.h
--- a/js/public/Utility.h
+++ b/js/public/Utility.h
@@ -69,17 +69,17 @@ JS_BEGIN_EXTERN_C
 
 /*
  * Pattern used to overwrite freed memory. If you are accessing an object with
  * this pattern, you probably have a dangling pointer.
  */
 #define JS_FREE_PATTERN 0xDA
 
 #define JS_ASSERT(expr)           MOZ_ASSERT(expr)
-#define JS_ASSERT_IF(cond, expr)  MOZ_ASSERT_IF((cond), (expr))
+#define JS_ASSERT_IF(cond, expr)  MOZ_ASSERT_IF(cond, expr)
 #define JS_NOT_REACHED(reason)    MOZ_NOT_REACHED(reason)
 #define JS_ALWAYS_TRUE(expr)      MOZ_ALWAYS_TRUE(expr)
 #define JS_ALWAYS_FALSE(expr)     MOZ_ALWAYS_FALSE(expr)
 
 #ifdef DEBUG
 # ifdef JS_THREADSAFE
 #  define JS_THREADSAFE_ASSERT(expr) JS_ASSERT(expr)
 # else