diff options
author | psychocrypt <psychocryptHPC@gmail.com> | 2018-04-14 22:09:39 +0200 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2018-06-04 21:07:11 +0000 |
commit | 6f0da67d4f01581b0ef8ec1bdd921a8a05d01c57 (patch) | |
tree | 4c47bdb46d4ca419ad3a7c1597791e40fb0f0ced /xmrstak/net/socket.cpp | |
parent | 5dbb3075f5f2a960ca4874886b07651791e1fddb (diff) | |
download | xmr-stak-6f0da67d4f01581b0ef8ec1bdd921a8a05d01c57.zip xmr-stak-6f0da67d4f01581b0ef8ec1bdd921a8a05d01c57.tar.gz |
fix a few conversion warnings
- fix conversion from large type tp small
Diffstat (limited to 'xmrstak/net/socket.cpp')
-rw-r--r-- | xmrstak/net/socket.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmrstak/net/socket.cpp b/xmrstak/net/socket.cpp index 7c58a8e..9bc608f 100644 --- a/xmrstak/net/socket.cpp +++ b/xmrstak/net/socket.cpp @@ -156,7 +156,8 @@ int plain_socket::recv(char* buf, unsigned int len) bool plain_socket::send(const char* buf) { - int pos = 0, slen = strlen(buf); + size_t pos = 0; + size_t slen = strlen(buf); while (pos != slen) { int ret = ::send(hSocket, buf + pos, slen - pos, 0); |