Avoid using hardcoded values for JSValue::Int32Tag, if possible.
[WebKit-https.git] / Source / JavaScriptCore / jit / JSInterfaceJIT.h
index 1e45f03004af79bb873c0fab6c77a0dadab02931..9c77118a8859c765c58cbf614aefa963e9306dd8 100644 (file)
@@ -50,9 +50,7 @@ namespace JSC {
         }
 
 #if USE(JSVALUE32_64)
-        // Can't just propogate JSValue::Int32Tag as visual studio doesn't like it
-        static const unsigned Int32Tag = 0xffffffff;
-        COMPILE_ASSERT(Int32Tag == JSValue::Int32Tag, Int32Tag_out_of_sync);
+        static const unsigned Int32Tag = static_cast<unsigned>(JSValue::Int32Tag);
 #else
         static const unsigned Int32Tag = static_cast<unsigned>(TagTypeNumber >> 32);
 #endif