You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/06/26 12:14:28 UTC
[GitHub] [rocketmq-client-cpp] SRC-xiaojin commented on a diff in pull request #419: avoid possible type conversion compile error
SRC-xiaojin commented on code in PR #419:
URL: https://github.com/apache/rocketmq-client-cpp/pull/419#discussion_r906805448
##########
src/transport/TcpTransport.cpp:
##########
@@ -207,7 +207,7 @@ void TcpTransport::eventCallback(BufferEvent* event, short what, TcpTransport* t
// disable Nagle
int val = 1;
- setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (void*)&val, sizeof(val));
+ setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, static_cast<const char *>((void*)&val), sizeof(val));
Review Comment:
no problem
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org