Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
eigenpy
Commits
ac74a487
Verified
Commit
ac74a487
authored
Jul 30, 2021
by
Justin Carpentier
Browse files
types: add safe guard
parent
7fbb1ee8
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/eigenpy/user-type.hpp
View file @
ac74a487
...
...
@@ -256,6 +256,8 @@ namespace eigenpy
// PyTypeObject * to_py_type = Register::getPyType<To>();
int
to_typenum
=
Register
::
getTypeCode
<
To
>
();
assert
(
to_typenum
>=
0
&&
"to_typenum is not valid"
);
assert
(
from_array_descr
!=
NULL
&&
"to_typenum is not valid"
);
if
(
PyArray_RegisterCastFunc
(
from_array_descr
,
to_typenum
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment