Verified Commit ee0a8dd8 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

register: simplify adding of PyGenericArrType_Type

parent 046a1d8a
......@@ -47,10 +47,10 @@ namespace eigenpy
PyArray_FillWithScalarFunc * fillwithscalar)
{
namespace bp = boost::python;
bp::list bases(bp::handle<>(bp::borrowed(py_type_ptr->tp_bases)));
bases.append((bp::handle<>(bp::borrowed(&PyGenericArrType_Type))));
bp::tuple tp_bases_extended(bases);
bp::tuple tp_bases_extended(bp::make_tuple(bp::handle<>(bp::borrowed(&PyGenericArrType_Type))));
tp_bases_extended += bp::tuple(bp::handle<>(bp::borrowed(py_type_ptr->tp_bases)));
Py_INCREF(tp_bases_extended.ptr());
py_type_ptr->tp_bases = tp_bases_extended.ptr();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment