Fix some implicit truncation and sign coersion in the networking APIs
authorChristopher Dykes <cdykes@fb.com>
Mon, 12 Dec 2016 19:34:23 +0000 (11:34 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Mon, 12 Dec 2016 19:48:05 +0000 (11:48 -0800)
commitb4a27a035cc092f444df9a952e371ed4a201c2f4
treea1951a92f3cb7640600ba7f8a84b8fce2a35812e
parent4168732ce0baa354cb86a1ed819a25b0af10795d
Fix some implicit truncation and sign coersion in the networking APIs

Summary: Split out of an earlier pair of diffs, this focuses exclusively on Folly's networking APIs and works to eliminate places where values were being implicitly truncated.

Reviewed By: yfeldblum

Differential Revision: D4288042

fbshipit-source-id: dd6e19acd319296a45c29c8050dc62f06571e1e6
19 files changed:
folly/IPAddress.cpp
folly/IPAddressV4.cpp
folly/IPAddressV4.h
folly/IPAddressV6.cpp
folly/IPAddressV6.h
folly/MacAddress.cpp
folly/SocketAddress.cpp
folly/detail/IPAddress.h
folly/detail/IPAddressSource.h
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/AsyncServerSocket.cpp
folly/io/async/AsyncSignalHandler.cpp
folly/io/async/AsyncSocket.cpp
folly/io/async/AsyncSocket.h
folly/io/async/EventBase.cpp
folly/io/async/EventBase.h
folly/io/async/EventHandler.h
folly/io/async/HHWheelTimer.cpp
folly/io/async/NotificationQueue.h