1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

Merge pull request #13230 from NixOS/mergify/bp/2.29-maintenance/pr-13228

libutil-tests/json-utils: fix -Werror=sign-compare error (backport #13228)
This commit is contained in:
Eelco Dolstra 2025-05-19 16:46:37 +02:00 committed by GitHub
commit 0cd1fce3c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -131,7 +131,7 @@ TEST(getString, wrongAssertions) {
TEST(getIntegralNumber, rightAssertions) {
auto simple = R"({ "int": 0, "signed": -1 })"_json;
ASSERT_EQ(getUnsigned(valueAt(getObject(simple), "int")), 0);
ASSERT_EQ(getUnsigned(valueAt(getObject(simple), "int")), 0u);
ASSERT_EQ(getInteger<int8_t>(valueAt(getObject(simple), "int")), 0);
ASSERT_EQ(getInteger<int8_t>(valueAt(getObject(simple), "signed")), -1);
}