From 42507e4daf3ca5c8a10a0b17dae563bd6c64c099 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Tue, 24 Aug 2010 22:15:01 -0500 Subject: [PATCH] don't use integer conversions. All JS Numbers are internally represented as 64bit doubles anyway. --- ext/v8/rr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/v8/rr.cpp b/ext/v8/rr.cpp index d97179a..c2cdeb7 100644 --- a/ext/v8/rr.cpp +++ b/ext/v8/rr.cpp @@ -118,7 +118,8 @@ VALUE rr_v82rb(int32_t value) { Handle rr_rb2v8(VALUE value) { switch (TYPE(value)) { case T_FIXNUM: - return Integer::New(FIX2LONG(value)); + // TODO: use this conversion if value will fit in 32 bits. + // return Integer::New(FIX2LONG(value)); case T_FLOAT: return Number::New(NUM2DBL(value)); case T_STRING: