mirror of
https://github.com/nlohmann/json.git
synced 2026-10-28 08:45:43 +00:00
Merge develop; fix clang-tidy findings in json_view
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
422 files changed
+2639
-837
No files matched your search
Generated
+1
-1
@@ -1743,7 +1743,7 @@ run_found:
|
||||
// the first growth: a decoded string is never longer than its source,
|
||||
// so a fraction of the input (capped, as the buffer is zero-filled)
|
||||
// covers the escapes of a typical document without regrowing it
|
||||
wanted = (std::max)(wanted, (std::min)(static_cast<std::size_t>(m_end - m_begin) / 4 + 16, std::size_t{4096}));
|
||||
wanted = (std::max)(wanted, (std::min)((static_cast<std::size_t>(m_end - m_begin) / 4) + 16, std::size_t{4096}));
|
||||
}
|
||||
m_doc.arena.resize((std::max)(m_doc.arena.size() * 2, wanted));
|
||||
m_arena_write = m_doc.arena.data() + used;
|
||||
|
||||
Reference in new issue
Block a user