diff options
author | Sadie Powell <sadie@witchery.services> | 2022-01-03 19:17:02 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2022-01-04 00:39:05 +0000 |
commit | eb81f22a5b1df18c9844893c55f57762148f2bd0 (patch) | |
tree | fb178d90cac536562faeabd2a57f720d70cc0530 /src/sockets.cpp | |
parent | a31a7f5a6ce3f47716a9313d232c2a40955fd1e1 (diff) |
Modernize CXXFLAGS on Unix and enable -Werror on CI.
Also clear up warnings that this exposed.
Diffstat (limited to 'src/sockets.cpp')
-rw-r--r-- | src/sockets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sockets.cpp b/src/sockets.cpp index 37ba6e446..b05927691 100644 --- a/src/sockets.cpp +++ b/src/sockets.cpp @@ -306,7 +306,7 @@ bool cidr::match(const sockaddrs &other) byte = len % 8; if (byte) { - uint8_t m = ~0 << (8 - byte); + uint8_t m = ~0u << (8 - byte); return (*ip & m) == (*their_ip & m); } |