From afe2b7258eb7e4a51717426e4f8925382239b86b Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sat, 18 Jan 2025 17:55:03 +0300 Subject: [PATCH] fix infinite block fields conversion requests --- src/data/StructLayout.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/data/StructLayout.cpp b/src/data/StructLayout.cpp index 3716bc44c..d0e207a10 100644 --- a/src/data/StructLayout.cpp +++ b/src/data/StructLayout.cpp @@ -44,6 +44,9 @@ StructLayout StructLayout::create(const std::vector& 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; } );