Permalink
Browse files

fix improper usage of rb_define_method

  • Loading branch information...
1 parent d9265a9 commit 09ae7ce1246cbd969529880968636c0a0d102fc5 @brianmario committed Sep 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/yajl_ext.c
View
@@ -846,7 +846,7 @@ void Init_yajl_ext() {
rb_define_singleton_method(cParser, "new", rb_yajl_parser_new, -1);
rb_define_method(cParser, "initialize", rb_yajl_parser_init, -1);
rb_define_method(cParser, "parse", rb_yajl_parser_parse, -1);
- rb_define_method(cParser, "parse_chunk", rb_yajl_parser_parse_chunk, -1);
+ rb_define_method(cParser, "parse_chunk", rb_yajl_parser_parse_chunk, 1);
rb_define_method(cParser, "<<", rb_yajl_parser_parse_chunk, 1);
rb_define_method(cParser, "on_parse_complete=", rb_yajl_parser_set_complete_cb, 1);

0 comments on commit 09ae7ce

Please sign in to comment.