Fix dtype::strip_padding() on Intel compiler

This commit is contained in:
Ivan Smirnov 2016-08-25 21:52:52 +01:00
parent 69b6246677
commit d8b11b8708

View File

@ -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<int>() < b.offset.cast<int>();
});
list names, formats, offsets;