mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-13 09:03:54 +00:00
Merge pull request #319 from dean0x7d/fix-sign-warnings
Fix minor signedness warnings on clang
This commit is contained in:
commit
5289af5fc0
@ -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