mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 16:37:13 +00:00
Fix dtype::strip_padding() on Intel compiler
This commit is contained in:
parent
69b6246677
commit
d8b11b8708
@ -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