Fix Linux build.

This commit is contained in:
XMRig
2017-08-16 17:07:04 +03:00
parent 4e4fe5f47c
commit 2c8e960fdc
2 changed files with 2 additions and 1 deletions

View File

@@ -25,6 +25,7 @@
#define __JOB_H__
#include <stddef.h>
#include <stdint.h>

View File

@@ -308,7 +308,7 @@ void Miner::onAllocBuffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *
auto miner = getMiner(handle->data);
buf->base = &miner->m_recvBuf.base[miner->m_recvBufPos];
buf->len = miner->m_recvBuf.len - (ULONG) miner->m_recvBufPos;
buf->len = miner->m_recvBuf.len - miner->m_recvBufPos;
}