ext/numo/narray/array.c in numo-narray-0.9.2.0 vs ext/numo/narray/array.c in numo-narray-0.9.2.1
- old
+ new
@@ -356,11 +356,11 @@
int i, ndim;
size_t *shape;
VALUE dtype, dshape;
mdai = na_mdai_alloc(ary);
- vmdai = TypedData_Wrap_Struct(rb_cData, &mdai_data_type, (void*)mdai);
+ vmdai = TypedData_Wrap_Struct(rb_cObject, &mdai_data_type, (void*)mdai);
if ( na_mdai_investigate(mdai, 1) ) {
// empty
dtype = update_type(ptype, numo_cInt32);
if (pshape) {
*pshape = rb_ary_new3(1, INT2FIX(0));
@@ -604,10 +604,10 @@
na_mdai_t *mdai;
na_compose_t *nc;
mdai = na_mdai_alloc(ary);
mdai->na_type = nstruct;
- vmdai = TypedData_Wrap_Struct(rb_cData, &mdai_data_type, (void*)mdai);
+ vmdai = TypedData_Wrap_Struct(rb_cObject, &mdai_data_type, (void*)mdai);
na_mdai_for_struct(mdai, 0);
nc = na_compose_alloc();
vnc = WrapCompose(nc);
na_mdai_result(mdai, nc);
//fprintf(stderr,"nc->ndim=%d\n",nc->ndim);