Commit 1e4fcfd2 authored by aroben@apple.com's avatar aroben@apple.com
Browse files

Windows build fix

        Reviewed by Darin.

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


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27648 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent bd242c87
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
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment