nobody ever got hurt by too much parenthesis in expressions (build fix follow-up for 553541)
authorAndreas Gal <gal@mozilla.com>
Mon, 22 Mar 2010 20:15:08 -0700
changeset 40335 400097fb04e78ea846efa085c29eb11c07c4b4e2
parent 40334 1dca6e135a1e38d049cb51acb1222cb5b358dd75
child 40336 38cb39bc6744626c5f41e0b6cf9ccd58e457cd8b
push id12610
push userrsayre@mozilla.com
push dateMon, 05 Apr 2010 17:26:41 +0000
treeherdermozilla-central@1942c0b4e101 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs553541
milestone1.9.3a3pre
nobody ever got hurt by too much parenthesis in expressions (build fix follow-up for 553541)
js/src/jsstr.cpp
--- a/js/src/jsstr.cpp
+++ b/js/src/jsstr.cpp
@@ -3108,17 +3108,17 @@ js_NewString(JSContext *cx, jschar *char
   }
 #endif
     return str;
 }
 
 static bool
 FitsIntoShortString(size_t length)
 {
-    return length < sizeof JSString / sizeof jschar;
+    return length < sizeof(JSString) / sizeof(jschar);
 }
 
 JSString *
 NewShortString(JSContext *cx, const jschar *chars, size_t length)
 {
     JS_ASSERT(FitsIntoShortString(length));
     JSShortString *str = js_NewGCShortString(cx);
     if (!str)