diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-13 00:42:57 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-13 00:42:57 -0800 |
commit | cbe92b62cf1d0f6b0d813a016774ea2ac41b5d72 (patch) | |
tree | ff162f0822ed2e4e609679381b9589a9fb2cbb73 /ext | |
parent | 244e77539c59866b429c869284167296be3b44d7 (diff) | |
download | ffi-yajl-cbe92b62cf1d0f6b0d813a016774ea2ac41b5d72.tar.gz |
conversion to signed int was throwing a rangerror0.0.4
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ffi_yajl/ext/encoder/encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ffi_yajl/ext/encoder/encoder.c b/ext/ffi_yajl/ext/encoder/encoder.c index 6d7c0f3..5576881 100644 --- a/ext/ffi_yajl/ext/encoder/encoder.c +++ b/ext/ffi_yajl/ext/encoder/encoder.c @@ -163,7 +163,7 @@ static VALUE rb_cFixnum_ffi_yajl(VALUE self, VALUE rb_yajl_gen, VALUE state) { ); } else { CHECK_STATUS( - yajl_gen_integer(yajl_gen, NUM2INT(self)) + yajl_gen_number(yajl_gen, cptr, len) ); } return Qnil; |