From ec957c0be2e5ce0dbdd26826a1a1fa7790d36996 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sun, 1 Nov 2026 00:14:02 +0100 Subject: [PATCH] json_view tests: use unsigned literals for the accept() nesting depths ci_static_analysis_clang reports -Wsign-conversion for the int literals that initialize 'const std::size_t depth' in the range-for over nesting depths. Signed-off-by: Niels Lohmann --- tests/src/unit-json_view_builder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/unit-json_view_builder.cpp b/tests/src/unit-json_view_builder.cpp index f06dd3498..80625dea7 100644 --- a/tests/src/unit-json_view_builder.cpp +++ b/tests/src/unit-json_view_builder.cpp @@ -476,7 +476,7 @@ TEST_CASE("json_view builder") // nesting beyond the 64 levels that are kept on the builder's own stack, closed and not closed for (const std::size_t depth : { - 63, 64, 65, 66, 200, 1000 + 63u, 64u, 65u, 66u, 200u, 1000u }) { check_accept(std::string(depth, '[') + std::string(depth, ']'));