summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-01-21 14:39:24 +0100
committerMax Kellermann <max@musicpd.org>2019-01-21 14:39:24 +0100
commit48ec09ab1e65706eb00fda39ee07827a861dbde0 (patch)
tree6bc8b549f67d612a48408f68a3366b148dc0d367 /test
parent754f4048a8ab2e4c698ef74c042dd839f369a47b (diff)
test/net/TestIPv4Address: make literal unsigned to work around -Wsign-compare
Diffstat (limited to 'test')
-rw-r--r--test/net/TestIPv4Address.cxx2
1 files changed, 1 insertions, 1 deletions
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));
}