Skip to content

Commit a886589

Browse files
committed
all: fix compilation warnings
1 parent b6a9c32 commit a886589

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/eigenpy/numpy-type.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

include/eigenpy/numpy.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 };};

include/eigenpy/user-type.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)