提交 eb5ce223 编写于 作者: J jcoomes

6679422: networkStream::connect() in ostream.cpp is not 64-bit clean

Reviewed-by: jmasa, xlu
上级 a2ed43e9
......@@ -829,7 +829,7 @@ bool networkStream::connect(const char *ip, short port) {
server.sin_port = htons(port);
server.sin_addr.s_addr = inet_addr(ip);
if (server.sin_addr.s_addr == (unsigned long)-1) {
if (server.sin_addr.s_addr == (uint32_t)-1) {
#ifdef _WINDOWS
struct hostent* host = hpi::get_host_by_name((char*)ip);
#else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册