Fix a precedence warning on Windows
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Nov 2007 19:58:20 +0000 (19:58 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Nov 2007 19:58:20 +0000 (19:58 +0000)
        * kjs/JSImmediate.h:
        (KJS::JSImmediate::toBoolean):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27606 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/JSImmediate.h

index d5f9d27..a4dbd35 100644 (file)
@@ -1,3 +1,10 @@
+2007-11-08  Adam Roben  <aroben@apple.com>
+
+        Fix a precedence warning on Windows
+
+        * kjs/JSImmediate.h:
+        (KJS::JSImmediate::toBoolean):
+
 2007-11-08  Mark Rowe  <mrowe@apple.com>
 
         Build fix for JavaScriptGlue.
index 0861312..fd263df 100644 (file)
@@ -231,7 +231,7 @@ ALWAYS_INLINE bool JSImmediate::toBoolean(const JSValue* v)
 {
     ASSERT(isImmediate(v));
     uintptr_t bits = unTag(v);
-    return bits != 0 & (JSImmediate::getTag(v) != UndefinedType);
+    return (bits != 0) & (JSImmediate::getTag(v) != UndefinedType);
 }
 
 ALWAYS_INLINE JSValue* JSImmediate::fromDouble(double d)