summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-13 00:42:57 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-13 00:42:57 -0800
commitcbe92b62cf1d0f6b0d813a016774ea2ac41b5d72 (patch)
treeff162f0822ed2e4e609679381b9589a9fb2cbb73 /ext
parent244e77539c59866b429c869284167296be3b44d7 (diff)
downloadffi-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.c2
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;