@@ -60,9 +60,9 @@ namespace eigenpy
6060
6161 const int R = (int )PyArray_DIMS (pyArray)[0 ];
6262 const int C = (int )PyArray_DIMS (pyArray)[1 ];
63- const int itemsize = PyArray_ITEMSIZE (pyArray);
64- const int stride1 = (int )PyArray_STRIDE (pyArray, 0 ) / itemsize;
65- const int stride2 = (int )PyArray_STRIDE (pyArray, 1 ) / itemsize;
63+ const long int itemsize = PyArray_ITEMSIZE (pyArray);
64+ const int stride1 = (int )PyArray_STRIDE (pyArray, 0 ) / ( int ) itemsize;
65+ const int stride2 = (int )PyArray_STRIDE (pyArray, 1 ) / ( int ) itemsize;
6666
6767 if ( (MatType::RowsAtCompileTime!=R)
6868 && (MatType::RowsAtCompileTime!=Eigen::Dynamic) )
@@ -94,8 +94,8 @@ namespace eigenpy
9494 assert ( (PyArray_DIMS (pyArray)[rowMajor]< INT_MAX)
9595 && (PyArray_STRIDE (pyArray, rowMajor) ));
9696 const int R = (int )PyArray_DIMS (pyArray)[rowMajor];
97- const int itemsize = PyArray_ITEMSIZE (pyArray);
98- const int stride = (int ) PyArray_STRIDE (pyArray, rowMajor) / itemsize;;
97+ const long int itemsize = PyArray_ITEMSIZE (pyArray);
98+ const int stride = (int ) PyArray_STRIDE (pyArray, rowMajor) / ( int ) itemsize;;
9999
100100 if ( (MatType::MaxSizeAtCompileTime!=R)
101101 && (MatType::MaxSizeAtCompileTime!=Eigen::Dynamic) )
0 commit comments