summaryrefslogtreecommitdiff
path: root/ext/ffi_yajl/ext/encoder
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-12 20:29:22 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-12 20:29:22 -0800
commit0cc58f677238a09aefd8544de665fc9afc24fe30 (patch)
tree2dc623f5fcdd7528267879e1ef4d641a9e6a3206 /ext/ffi_yajl/ext/encoder
parent49f9883220c5ef7e764eafee4b09cbf515f8136c (diff)
downloadffi-yajl-0cc58f677238a09aefd8544de665fc9afc24fe30.tar.gz
one last native type to ruby conversion
fixes rbx
Diffstat (limited to 'ext/ffi_yajl/ext/encoder')
-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 6707632..6d7c0f3 100644
--- a/ext/ffi_yajl/ext/encoder/encoder.c
+++ b/ext/ffi_yajl/ext/encoder/encoder.c
@@ -7,7 +7,7 @@ static VALUE cYajl_Gen;
/* FIXME: the json gem does a whole bunch of indirection around monkeypatching... not sure if we need to as well... */
#define CHECK_STATUS(call) \
- if ((status = (call)) != yajl_gen_status_ok) { rb_funcall(mEncoder2, rb_intern("raise_error_for_status"), 1, status); }
+ if ((status = (call)) != yajl_gen_status_ok) { rb_funcall(mEncoder2, rb_intern("raise_error_for_status"), 1, INT2FIX(status)); }
static VALUE mEncoder_do_yajl_encode(VALUE self, VALUE obj, VALUE yajl_gen_opts) {
ID sym_ffi_yajl = rb_intern("ffi_yajl");