Skip to content

Commit 90eb2f7

Browse files
Mic92mergify[bot]
authored andcommitted
libutil-tests/json-utils: fix -Werror=sign-compare error
I am on a newer different nixpkgs branch, so I am getting this error (cherry picked from commit 1290b7e)
1 parent d1e4be6 commit 90eb2f7

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)