From 48ec09ab1e65706eb00fda39ee07827a861dbde0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 21 Jan 2019 14:39:24 +0100 Subject: [PATCH] test/net/TestIPv4Address: make literal unsigned to work around -Wsign-compare --- test/net/TestIPv4Address.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/net/TestIPv4Address.cxx b/test/net/TestIPv4Address.cxx index 08b995855..aa7f727be 100644 --- a/test/net/TestIPv4Address.cxx +++ b/test/net/TestIPv4Address.cxx @@ -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)); }