File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ namespace eigenpy
2020 template <typename Scalar>
2121 bool np_type_is_convertible_into_scalar (const int np_type)
2222 {
23- if (NumpyEquivalentType<Scalar>::type_code >= NPY_USERDEF)
23+ if (static_cast <NPY_TYPES>( NumpyEquivalentType<Scalar>::type_code) >= NPY_USERDEF)
2424 return np_type == Register::getTypeCode<Scalar>();
2525
2626 if (NumpyEquivalentType<Scalar>::type_code == np_type)
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ namespace eigenpy
3333 int EIGENPY_DLLAPI PyArray_TypeNum (PyTypeObject * type);
3434
3535 // By default, the Scalar is considered as a Python object
36- template <typename Scalar> struct NumpyEquivalentType { enum { type_code = NPY_USERDEF };};
36+ template <typename Scalar> struct NumpyEquivalentType { enum { type_code = NPY_USERDEF };};
3737
3838 template <> struct NumpyEquivalentType <float > { enum { type_code = NPY_FLOAT };};
3939 template <> struct NumpyEquivalentType < std::complex <float > > { enum { type_code = NPY_CFLOAT };};
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ namespace eigenpy
1717 {
1818 static To run (const From & from)
1919 {
20- return static_cast <To>(from) ;
20+ return (To)from ;
2121 }
2222
2323 };
You can’t perform that action at this time.
0 commit comments