From cb6cd6954b1fb10582f10bb0c879dee3c9a5e229 Mon Sep 17 00:00:00 2001 From: Dean Moldovan Date: Thu, 4 Aug 2016 23:55:12 +0200 Subject: [PATCH] Fix signedness warnings --- include/pybind11/eigen.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/pybind11/eigen.h b/include/pybind11/eigen.h index 41da5c504..bfb934060 100644 --- a/include/pybind11/eigen.h +++ b/include/pybind11/eigen.h @@ -139,7 +139,7 @@ struct type_caster::value && /* Buffer dimensions */ { (size_t) src.size() }, /* Strides (in bytes) for each index */ - { sizeof(Scalar) * src.innerStride() } + { sizeof(Scalar) * static_cast(src.innerStride()) } )).release(); } else { return array(buffer_info( @@ -155,8 +155,8 @@ struct type_caster::value && { (size_t) src.rows(), (size_t) src.cols() }, /* Strides (in bytes) for each index */ - { sizeof(Scalar) * src.rowStride(), - sizeof(Scalar) * src.colStride() } + { sizeof(Scalar) * static_cast(src.rowStride()), + sizeof(Scalar) * static_cast(src.colStride()) } )).release(); } }