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

core: fix check of user types

parent cdcfab5d
Branches
Tags
No related merge requests found
......@@ -20,9 +20,12 @@ namespace eigenpy
template<typename Scalar>
bool np_type_is_convertible_into_scalar(const int np_type)
{
if(NumpyEquivalentType<Scalar>::type_code >= NPY_USERDEF)
return np_type == Register::getTypeCode<Scalar>();
if(NumpyEquivalentType<Scalar>::type_code == np_type)
return true;
switch(np_type)
{
case NPY_INT:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment