fix infinite block fields conversion requests

This commit is contained in:
MihailRis 2025-01-18 17:55:03 +03:00
parent 147cf5b417
commit afe2b7258e

View File

@ -44,6 +44,9 @@ StructLayout StructLayout::create(const std::vector<Field>& fields) {
}
std::sort(builtFields.begin(), builtFields.end(),
[](const Field& a, const Field& b) {
if (a.size == b.size) {
return a.name < b.name;
}
return a.size > b.size;
}
);