Windows build fix
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Nov 2007 17:56:12 +0000 (17:56 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Nov 2007 17:56:12 +0000 (17:56 +0000)
        Reviewed by Darin.

        * kjs/value.h:
        (KJS::jsNumber): Add some explicit casts.

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

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/value.h

index ac1ed14..02d3993 100644 (file)
@@ -1,3 +1,12 @@
+2007-11-09  Adam Roben  <aroben@apple.com>
+
+        Windows build fix
+
+        Reviewed by Darin.
+
+        * kjs/value.h:
+        (KJS::jsNumber): Add some explicit casts.
+
 2007-11-08  Darin Adler  <darin@apple.com>
 
         - fix build
index f96f76d..7d64f36 100644 (file)
@@ -231,13 +231,13 @@ ALWAYS_INLINE JSValue* jsNumber(unsigned long i)
 ALWAYS_INLINE JSValue* jsNumber(long long i)
 {
     JSValue* v = JSImmediate::from(i);
-    return v ? v : jsNumberCell(i);
+    return v ? v : jsNumberCell(static_cast<double>(i));
 }
 
 ALWAYS_INLINE JSValue* jsNumber(unsigned long long i)
 {
     JSValue* v = JSImmediate::from(i);
-    return v ? v : jsNumberCell(i);
+    return v ? v : jsNumberCell(static_cast<double>(i));
 }
 
 ALWAYS_INLINE JSValue* jsNumberFromAnd(ExecState *exec, JSValue* v1, JSValue* v2)