Parenthesize the reserve arithmetic in the deep-nesting test clang-tidy's readability-math-missing-parentheses wants the multiplication spelled out in reserve(6 * depth + 1), and CI treats its warnings as errors. Signed-off-by: Niels Lohmann <mail@nlohmann.me>
diff --git a/tests/src/unit-serialization.cpp b/tests/src/unit-serialization.cpp index 4fcaee6..00bd6e8 100644 --- a/tests/src/unit-serialization.cpp +++ b/tests/src/unit-serialization.cpp
@@ -540,7 +540,7 @@ CHECK(json::parse(array_text).dump() == array_text); std::string object_text; - object_text.reserve(6 * depth + 1); + object_text.reserve((6 * depth) + 1); for (std::size_t i = 0; i < depth; ++i) { object_text += "{\"a\":";