Commit d2c2e40c authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Use the right type for values

Summary: MSVC was complaining very loudly about these being implicitly truncated to `int`s in the initialization of OptionsMap, so declare them as `int`.

Reviewed By: yfeldblum

Differential Revision: D10861911

fbshipit-source-id: 0d5c52fe4b5e59c5e101546093a13849fe3b2a7a
parent 7fb6c54e
......@@ -1156,8 +1156,8 @@ TEST(AsyncSocketTest, WriteErrorCallbackBytesWritten) {
TestServer server(false, kSockBufSize);
AsyncSocket::OptionMap options{
{{SOL_SOCKET, SO_SNDBUF}, kSockBufSize},
{{SOL_SOCKET, SO_RCVBUF}, kSockBufSize},
{{SOL_SOCKET, SO_SNDBUF}, int(kSockBufSize)},
{{SOL_SOCKET, SO_RCVBUF}, int(kSockBufSize)},
{{IPPROTO_TCP, TCP_NODELAY}, 1},
};
......
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