mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 16:37:13 +00:00
Fix signedness warnings
This commit is contained in:
parent
934e8dbd80
commit
cb6cd6954b
@ -139,7 +139,7 @@ struct type_caster<Type, typename std::enable_if<is_eigen_dense<Type>::value &&
|
|||||||
/* Buffer dimensions */
|
/* Buffer dimensions */
|
||||||
{ (size_t) src.size() },
|
{ (size_t) src.size() },
|
||||||
/* Strides (in bytes) for each index */
|
/* Strides (in bytes) for each index */
|
||||||
{ sizeof(Scalar) * src.innerStride() }
|
{ sizeof(Scalar) * static_cast<size_t>(src.innerStride()) }
|
||||||
)).release();
|
)).release();
|
||||||
} else {
|
} else {
|
||||||
return array(buffer_info(
|
return array(buffer_info(
|
||||||
@ -155,8 +155,8 @@ struct type_caster<Type, typename std::enable_if<is_eigen_dense<Type>::value &&
|
|||||||
{ (size_t) src.rows(),
|
{ (size_t) src.rows(),
|
||||||
(size_t) src.cols() },
|
(size_t) src.cols() },
|
||||||
/* Strides (in bytes) for each index */
|
/* Strides (in bytes) for each index */
|
||||||
{ sizeof(Scalar) * src.rowStride(),
|
{ sizeof(Scalar) * static_cast<size_t>(src.rowStride()),
|
||||||
sizeof(Scalar) * src.colStride() }
|
sizeof(Scalar) * static_cast<size_t>(src.colStride()) }
|
||||||
)).release();
|
)).release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user