1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-07 16:05:05 -05:00

#1581 Fixed macOS build.

This commit is contained in:
XMRig
2020-03-06 12:51:16 +07:00
parent 2020b71eeb
commit 7bf12dc81f

View File

@@ -314,7 +314,7 @@ int64_t xmrig::DaemonClient::getBlockTemplate()
Value params(kObjectType);
params.AddMember("wallet_address", m_user.toJSON(), allocator);
if (m_apiVersion == API_DERO) {
params.AddMember("reserve_size", BlobReserveSize, allocator);
params.AddMember("reserve_size", static_cast<uint64_t>(BlobReserveSize), allocator);
}
else {
params.AddMember("extra_nonce", Buffer::randomBytes(BlobReserveSize).toHex().toJSON(doc), allocator);