diff --git a/tests/src/unit-json_view.cpp b/tests/src/unit-json_view.cpp index 18872bf3e..a8de2d8ad 100644 --- a/tests/src/unit-json_view.cpp +++ b/tests/src/unit-json_view.cpp @@ -734,7 +734,7 @@ void check_access(const ordered_json_view& v, const ordered_json& j) std::size_t occurrences = 0; for (auto other = v.begin(); other != v.end(); ++other) { - occurrences += other.key() == it.key() ? 1 : 0; + occurrences += other.key() == it.key() ? 1u : 0u; } CHECK(v.count(key) == occurrences); // lookups find the first member with the key, which is this one if