ext/numo/binrw/write.c in numo-binrw-0.1.1 vs ext/numo/binrw/write.c in numo-binrw-0.2.1

- old
+ new

@@ -25,9 +25,10 @@ } VALUE nrw_bin_write(VALUE self, VALUE obj, VALUE filename){ char* cfilename; + obj = rb_funcall(obj, rb_intern("copy"), 0); void* data = na_get_pointer(obj); long size = NUM2LONG(rb_funcall(obj, rb_intern("size"), 0)); if(rb_is_a(filename, rb_cArray)){ long row = NUM2LONG(rb_funcall(filename, rb_intern("size"), 0)); \ No newline at end of file