Skip to content

Commit a9f5775

Browse files
authored
Merge pull request #201 from kojix2/kojix2-patch
Use rb_cObject instead of rb_cData
2 parents 6f5c912 + 01aaf37 commit a9f5775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/numo/narray/array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ na_composition3_ary(VALUE ary, VALUE *ptype, VALUE *pshape, VALUE *pnary)
358358
VALUE dtype, dshape;
359359

360360
mdai = na_mdai_alloc(ary);
361-
vmdai = TypedData_Wrap_Struct(rb_cData, &mdai_data_type, (void*)mdai);
361+
vmdai = TypedData_Wrap_Struct(rb_cObject, &mdai_data_type, (void*)mdai);
362362
if ( na_mdai_investigate(mdai, 1) ) {
363363
// empty
364364
dtype = update_type(ptype, numo_cInt32);
@@ -606,7 +606,7 @@ na_ary_composition_for_struct(VALUE nstruct, VALUE ary)
606606
607607
mdai = na_mdai_alloc(ary);
608608
mdai->na_type = nstruct;
609-
vmdai = TypedData_Wrap_Struct(rb_cData, &mdai_data_type, (void*)mdai);
609+
vmdai = TypedData_Wrap_Struct(rb_cObject, &mdai_data_type, (void*)mdai);
610610
na_mdai_for_struct(mdai, 0);
611611
nc = na_compose_alloc();
612612
vnc = WrapCompose(nc);

0 commit comments

Comments
 (0)