Merge pull request #358 from aldanor/bugfix/icpc-numpy

Fix dtype::strip_padding() on Intel compiler
This commit is contained in:
Wenzel Jakob 2016-08-25 22:56:38 +02:00 committed by GitHub
commit 3c49bca67a

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;