ext/numo/narray/array.c in numo-narray-0.9.0.3 vs ext/numo/narray/array.c in numo-narray-0.9.0.4

- old
+ new

@@ -1,14 +1,9 @@ /* array.c Numerical Array Extension for Ruby (C) Copyright 1999-2016 by Masahiro TANAKA - - This program is free software. - You can distribute/modify this program - under the same terms as Ruby itself. - NO WARRANTY. */ #include <ruby.h> #include "numo/narray.h" //#include "narray_local.h" @@ -118,10 +113,10 @@ { if (IsNArray(v)) { if (NIL_P(mdai->na_type)) { mdai->na_type = CLASS_OF(v); } else { - mdai->na_type = na_upcast(CLASS_OF(v), CLASS_OF(mdai->na_type)); + mdai->na_type = na_upcast(CLASS_OF(v), mdai->na_type); } } else if (rb_obj_is_kind_of(v, rb_cRange)) { MDAI_ATTR_TYPE(mdai->type,v,"begin"); MDAI_ATTR_TYPE(mdai->type,v,"end"); } else if (rb_obj_is_kind_of(v, na_cStep)) {