ext/numo/narray/gen/tmpl/cast.c in numo-narray-0.9.1.2 vs ext/numo/narray/gen/tmpl/cast.c in numo-narray-0.9.1.3

- old
+ new

@@ -15,10 +15,10 @@ { VALUE v; narray_t *na; dtype x; - if (CLASS_OF(obj)==cT) { + if (rb_obj_class(obj)==cT) { return obj; } if (RTEST(rb_obj_is_kind_of(obj,rb_cNumeric))) { x = m_num_to_data(obj); return <%=type_name%>_new_dim0(x);