mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
javascript integers can be long
This commit is contained in:
parent
3285c4dcb9
commit
fd6c1a07c4
1 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ VALUE rr_v82rb(double value) {
|
|||
return rb_float_new(value);
|
||||
}
|
||||
VALUE rr_v82rb(int64_t value) {
|
||||
return INT2FIX(value);
|
||||
return LONG2NUM(value);
|
||||
}
|
||||
VALUE rr_v82rb(uint32_t value) {
|
||||
return UINT2NUM(value);
|
||||
|
@ -118,7 +118,7 @@ VALUE rr_v82rb(int32_t value) {
|
|||
Handle<Value> rr_rb2v8(VALUE value) {
|
||||
switch (TYPE(value)) {
|
||||
case T_FIXNUM:
|
||||
return Integer::New(FIX2INT(value));
|
||||
return Integer::New(FIX2LONG(value));
|
||||
case T_FLOAT:
|
||||
return Number::New(NUM2DBL(value));
|
||||
case T_STRING:
|
||||
|
|
Loading…
Add table
Reference in a new issue