mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-03 14:03:30 +08: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(),
|
std::sort(field_descriptors.begin(), field_descriptors.end(),
|
||||||
[](const field_descr& a, const field_descr& b) {
|
[](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;
|
list names, formats, offsets;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user