Skip to content

Commit 6eb3b13

Browse files
committed
core: fix warning
1 parent 80dab9f commit 6eb3b13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/eigenpy/user-type.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ namespace eigenpy
206206
typedef const Eigen::Map<const VectorT,0,InputStride> ConstMapType;
207207

208208
ConstMapType
209-
v0(static_cast<T*>(ip0_),n,InputStride(is0/sizeof(T))),
210-
v1(static_cast<T*>(ip1_),n,InputStride(is1/sizeof(T)));
209+
v0(static_cast<T*>(ip0_),n,InputStride(is0/(Eigen::DenseIndex)sizeof(T))),
210+
v1(static_cast<T*>(ip1_),n,InputStride(is1/(Eigen::DenseIndex)sizeof(T)));
211211

212212
*static_cast<T*>(op) = v0.dot(v1);
213213
}

0 commit comments

Comments
 (0)