ext/numo/narray/gen/tmpl/cond_binary.c in numo-narray-0.9.1.2 vs ext/numo/narray/gen/tmpl/cond_binary.c in numo-narray-0.9.1.3
- old
+ new
@@ -42,10 +42,10 @@
{
<% if is_object %>
return <%=c_func%>_self(self, other);
<% else %>
VALUE klass, v;
- klass = na_upcast(CLASS_OF(self),CLASS_OF(other));
+ klass = na_upcast(rb_obj_class(self),rb_obj_class(other));
if (klass==cT) {
return <%=c_func%>_self(self, other);
} else {
v = rb_funcall(klass, id_cast, 1, self);
return rb_funcall(v, <%=id_op%>, 1, other);