From d8b11b8708df720e903f423e3a3e4370554a1e45 Mon Sep 17 00:00:00 2001 From: Ivan Smirnov Date: Thu, 25 Aug 2016 21:52:52 +0100 Subject: [PATCH] Fix dtype::strip_padding() on Intel compiler --- include/pybind11/numpy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index 3fe426a52..c06fb2666 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -191,7 +191,7 @@ private: std::sort(field_descriptors.begin(), field_descriptors.end(), [](const field_descr& a, const field_descr& b) { - return (int) a.offset < (int) b.offset; + return a.offset.cast() < b.offset.cast(); }); list names, formats, offsets;