Verified Commit 88185e4f authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: fix check of user types

parent cdcfab5d
......@@ -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;
case NPY_INT:
Supports Markdown
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