diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2013-12-04 23:43:32 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2013-12-04 23:43:32 -0800 |
commit | 26ad428e07ce1ee0698272a29de7e3a93dd35442 (patch) | |
tree | a190eadb847c0b57d92c1c85bc613ba102a48cd7 /ext | |
parent | 125a444bbd7c9e8cde2d29783ba232b5389760a0 (diff) | |
download | ffi-yajl-26ad428e07ce1ee0698272a29de7e3a93dd35442.tar.gz |
fix bool types
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ffi_yajl/ext/encoder/encoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ffi_yajl/ext/encoder/encoder.c b/ext/ffi_yajl/ext/encoder/encoder.c index 047ab62..f4853dd 100644 --- a/ext/ffi_yajl/ext/encoder/encoder.c +++ b/ext/ffi_yajl/ext/encoder/encoder.c @@ -102,12 +102,12 @@ static VALUE rb_cNilClass_ffi_yajl(VALUE self, VALUE yajl_gen, VALUE state) { } static VALUE rb_cTrueClass_ffi_yajl(VALUE self, VALUE yajl_gen, VALUE state) { - yajl_gen_bool((struct yajl_gen_t *) yajl_gen, 0); + yajl_gen_bool((struct yajl_gen_t *) yajl_gen, 1); return Qnil; } static VALUE rb_cFalseClass_ffi_yajl(VALUE self, VALUE yajl_gen, VALUE state) { - yajl_gen_bool((struct yajl_gen_t *) yajl_gen, 1); + yajl_gen_bool((struct yajl_gen_t *) yajl_gen, 0); return Qnil; } |