From 27dcb668bb64524797c067bbbb9c6c8f1700fe4d Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Tue, 27 Oct 2026 14:31:54 +0100 Subject: [PATCH] tests: avoid sign conversion in json_view_edit UTF-8 check Signed-off-by: Niels Lohmann --- tests/src/unit-json_view_edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/unit-json_view_edit.cpp b/tests/src/unit-json_view_edit.cpp index c39ccc6b4..1b1a24ec8 100644 --- a/tests/src/unit-json_view_edit.cpp +++ b/tests/src/unit-json_view_edit.cpp @@ -977,7 +977,7 @@ TEST_CASE("json_view edits: check_utf8 agrees with the byte-wise check") INFO("fast: " << a << ", byte-wise: " << b << ", length " << s.size()); CHECK(a == b); } - errors += b != "ok" ? 1 : 0; + errors += b != "ok" ? 1u : 0u; }; const std::vector pieces =