mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
Merge pull request #358 from aldanor/bugfix/icpc-numpy
Fix dtype::strip_padding() on Intel compiler
This commit is contained in:
commit
3c49bca67a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user