Fix type cast for recv().

This commit is contained in:
David Baird
2013-11-12 17:19:38 -07:00
parent f05878ed89
commit 7d6681eea1
+1 -1
View File
@@ -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