Navigation Menu

Skip to content

Commit

Permalink
Fix type cast for recv().
Browse files Browse the repository at this point in the history
  • Loading branch information
dhbaird committed Nov 13, 2013
1 parent f05878e commit 7d6681e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easywsclient.cpp
Expand Up @@ -183,7 +183,7 @@ class _RealWebSocket : public easywsclient::WebSocket
ssize_t ret;
rxbuf.resize(N + 1500);
#ifdef _WIN32
ret = recv(sockfd, (int8_t*)&rxbuf[0] + N, 1500, 0);
ret = recv(sockfd, (char*)&rxbuf[0] + N, 1500, 0);
#else
ret = recv(sockfd, &rxbuf[0] + N, 1500, 0);
#endif
Expand Down

0 comments on commit 7d6681e

Please sign in to comment.