test/net/TestIPv4Address: make literal unsigned to work around -Wsign-compare

This commit is contained in:
Max Kellermann 2019-01-21 14:39:24 +01:00
parent 754f4048a8
commit 48ec09ab1e
1 changed files with 1 additions and 1 deletions

View File

@ -85,6 +85,6 @@ TEST(IPv4Address, MaskFromPrefix)
TEST(IPv4Address, Numeric) TEST(IPv4Address, Numeric)
{ {
EXPECT_EQ(IPv4Address(1, 2, 3, 4, 0).GetNumericAddress(), 0x01020304); EXPECT_EQ(IPv4Address(1, 2, 3, 4, 0).GetNumericAddress(), 0x01020304u);
EXPECT_EQ(IPv4Address(1, 2, 3, 4, 0).GetNumericAddressBE(), htonl(0x01020304)); EXPECT_EQ(IPv4Address(1, 2, 3, 4, 0).GetNumericAddressBE(), htonl(0x01020304));
} }