From c40f212e23e1b03c9e84a7538bb55703fcc3e32b Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 15 Aug 2017 03:13:11 +0300 Subject: [PATCH] Fix Linux build. --- src/log/ConsoleLog.cpp | 2 +- src/net/Client.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/log/ConsoleLog.cpp b/src/log/ConsoleLog.cpp index b641c0e65..7b0445907 100644 --- a/src/log/ConsoleLog.cpp +++ b/src/log/ConsoleLog.cpp @@ -127,7 +127,7 @@ void ConsoleLog::print(char *fmt, va_list args) uv_buf_t buf; buf.base = strdup(m_buf); - buf.len = (ULONG) strlen(buf.base); + buf.len = strlen(buf.base); uv_write_t *req = new uv_write_t; req->data = buf.base; diff --git a/src/net/Client.cpp b/src/net/Client.cpp index a129ddb01..fde7f4802 100644 --- a/src/net/Client.cpp +++ b/src/net/Client.cpp @@ -501,7 +501,7 @@ void Client::onAllocBuffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t auto client = getClient(handle->data); buf->base = &client->m_recvBuf.base[client->m_recvBufPos]; - buf->len = client->m_recvBuf.len - (ULONG) client->m_recvBufPos; + buf->len = client->m_recvBuf.len - client->m_recvBufPos; }