Skip to content

Commit 7d6681e

Browse files
committed
Fix type cast for recv().
1 parent f05878e commit 7d6681e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easywsclient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class _RealWebSocket : public easywsclient::WebSocket
183183
ssize_t ret;
184184
rxbuf.resize(N + 1500);
185185
#ifdef _WIN32
186-
ret = recv(sockfd, (int8_t*)&rxbuf[0] + N, 1500, 0);
186+
ret = recv(sockfd, (char*)&rxbuf[0] + N, 1500, 0);
187187
#else
188188
ret = recv(sockfd, &rxbuf[0] + N, 1500, 0);
189189
#endif

0 commit comments

Comments
 (0)