mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
libutil-tests/json-utils: fix -Werror=sign-compare error
I am on a newer different nixpkgs branch, so I am getting this error
This commit is contained in:
parent
e7078d4de1
commit
1290b7e53d
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ TEST(getString, wrongAssertions) {
|
||||||
TEST(getIntegralNumber, rightAssertions) {
|
TEST(getIntegralNumber, rightAssertions) {
|
||||||
auto simple = R"({ "int": 0, "signed": -1 })"_json;
|
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), "int")), 0);
|
||||||
ASSERT_EQ(getInteger<int8_t>(valueAt(getObject(simple), "signed")), -1);
|
ASSERT_EQ(getInteger<int8_t>(valueAt(getObject(simple), "signed")), -1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue