Skip to content
Snippets Groups Projects
Verified Commit 65ed89c0 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

types: fix registration

parent d1b68776
No related branches found
No related tags found
No related merge requests found
...@@ -54,8 +54,8 @@ namespace eigenpy ...@@ -54,8 +54,8 @@ namespace eigenpy
Py_INCREF(tp_bases_extended.ptr()); Py_INCREF(tp_bases_extended.ptr());
py_type_ptr->tp_bases = tp_bases_extended.ptr(); py_type_ptr->tp_bases = tp_bases_extended.ptr();
// py_type_ptr->tp_flags &= ~Py_TPFLAGS_READY; // to force the rebuild py_type_ptr->tp_flags &= ~Py_TPFLAGS_READY; // to force the rebuild
py_type_ptr->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HEAPTYPE; // py_type_ptr->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HEAPTYPE;
if(PyType_Ready(py_type_ptr) < 0) // Force rebuilding of the __bases__ and mro if(PyType_Ready(py_type_ptr) < 0) // Force rebuilding of the __bases__ and mro
{ {
throw std::invalid_argument("PyType_Ready fails to initialize input type."); throw std::invalid_argument("PyType_Ready fails to initialize input type.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment