Skip to content
GitLab
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
55b1254d
Verified
Commit
55b1254d
authored
May 23, 2020
by
Justin Carpentier
Browse files
core: fix cast
parent
30179d3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/eigenpy/eigen-from-python.hpp
View file @
55b1254d
...
...
@@ -285,7 +285,7 @@ namespace eigenpy
template
<
typename
MatType
>
void
*
EigenFromPy
<
MatType
>::
convertible
(
PyArrayObject
*
pyArray
)
{
if
(
!
call_PyArray_Check
(
pyArray
))
if
(
!
call_PyArray_Check
(
reinterpret_cast
<
PyObject
*>
(
pyArray
))
)
return
0
;
if
(
!
np_type_is_convertible_into_scalar
<
Scalar
>
(
EIGENPY_GET_PY_ARRAY_TYPE
(
pyArray
)))
...
...
@@ -476,7 +476,7 @@ namespace eigenpy
/// \brief Determine if pyObj can be converted into a MatType object
static
void
*
convertible
(
PyArrayObject
*
pyArray
)
{
if
(
!
call_PyArray_Check
(
pyArray
))
if
(
!
call_PyArray_Check
(
reinterpret_cast
<
PyObject
*>
(
pyArray
))
)
return
0
;
if
(
!
PyArray_ISWRITEABLE
(
pyArray
))
return
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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