X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=ext%2Fext.c;h=ea620be810658fcf541a5753c73abe1872daffaa;hb=ba5f3a808e0be5854ca448245fe24fcb983e650f;hp=28bfa4cb1ba52c94263f79cd7dff82fe397d5ec7;hpb=d8fc25053021bc96da9e0072e524d7a4c434fc1a;p=ruby-eet.git diff --git a/ext/ext.c b/ext/ext.c index 28bfa4c..ea620be 100644 --- a/ext/ext.c +++ b/ext/ext.c @@ -601,7 +601,7 @@ int_to_eet_chunks (int argc, VALUE *argv, VALUE self) rb_scan_args (argc, argv, "11", &tag, &type); - ary = rb_ary_new3 (1, self); + ary = rb_ary_new4 (1, &self); if (type == sym_char) cfmt = "c"; @@ -614,7 +614,7 @@ int_to_eet_chunks (int argc, VALUE *argv, VALUE self) args[1] = rb_funcall (ary, id_pack, 1, rb_str_new2 (cfmt)); chunk = rb_class_new_instance (2, args, cChunk); - return rb_ary_new3 (1, chunk); + return rb_ary_new4 (1, &chunk); } static VALUE @@ -644,7 +644,7 @@ float_to_eet_chunks (int argc, VALUE *argv, VALUE self) args[1] = rb_str_new (buf, len); chunk = rb_class_new_instance (2, args, cChunk); - return rb_ary_new3 (1, chunk); + return rb_ary_new4 (1, &chunk); } void