2009-03-03 Dimitri Glazkov <dglazkov@chromium.org>
[WebKit-https.git] / WebCore / bindings / v8 / V8Binding.h
index c9dc158c171d4cf88a83b1bd5d8b03f4b3053857..6347a5f5e0d2289c00adcc1ab3d47a1f4edd6a44 100644 (file)
 namespace WebCore {
 
     // FIXME: Remove once migration is complete
-    inline bool toInt32(v8::Handle<v8::Value> value)
+    inline int toInt32(v8::Handle<v8::Value> value)
     {
         return ToInt32(value);
     }
 
-    inline bool toFloat(v8::Local<v8::Value> value)
+    inline float toFloat(v8::Local<v8::Value> value)
     {
         return static_cast<float>(value->NumberValue());
     }