Compare commits

...
2 Commits
Author SHA1 Message Date
Niels Lohmann 45ef51e214 Regenerate the amalgamated headers
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
2026-10-20 22:26:07 +02:00
Niels Lohmann 4e0e915b13 Bind the serializer's frame only after the check for its end
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
2026-10-20 22:26:00 +02:00
2 changed files with 6 additions and 6 deletions

No files matched your search

+3 -3
View File
@@ -174,15 +174,15 @@ class view_serializer
m_out.finish();
return;
}
frame& f = stack.back();
if (f.pos == f.end)
if (stack.back().pos == stack.back().end)
{
const bool object = f.object; // (f dangles after pop_back)
const bool object = stack.back().object;
stack.pop_back();
newline(stack.size());
m_out.put(object ? '}' : ']');
continue;
}
frame& f = stack.back();
if (!f.first)
{
m_out.put(',');
+3 -3
View File
@@ -3518,15 +3518,15 @@ class view_serializer
m_out.finish();
return;
}
frame& f = stack.back();
if (f.pos == f.end)
if (stack.back().pos == stack.back().end)
{
const bool object = f.object; // (f dangles after pop_back)
const bool object = stack.back().object;
stack.pop_back();
newline(stack.size());
m_out.put(object ? '}' : ']');
continue;
}
frame& f = stack.back();
if (!f.first)
{
m_out.put(',');