Skip to content

Commit 0cd1fce

Browse files
authored
Merge pull request NixOS#13230 from NixOS/mergify/bp/2.29-maintenance/pr-13228
libutil-tests/json-utils: fix -Werror=sign-compare error (backport NixOS#13228)
2 parents d1e4be6 + 90eb2f7 commit 0cd1fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libutil-tests/json-utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ TEST(getString, wrongAssertions) {
131131
TEST(getIntegralNumber, rightAssertions) {
132132
auto simple = R"({ "int": 0, "signed": -1 })"_json;
133133

134-
ASSERT_EQ(getUnsigned(valueAt(getObject(simple), "int")), 0);
134+
ASSERT_EQ(getUnsigned(valueAt(getObject(simple), "int")), 0u);
135135
ASSERT_EQ(getInteger<int8_t>(valueAt(getObject(simple), "int")), 0);
136136
ASSERT_EQ(getInteger<int8_t>(valueAt(getObject(simple), "signed")), -1);
137137
}

0 commit comments

Comments
 (0)