Commit 48ec09ab authored by Max Kellermann's avatar Max Kellermann

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

parent 754f4048
......@@ -85,6 +85,6 @@ TEST(IPv4Address, MaskFromPrefix)
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));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment