#1581 Fixed macOS build.

This commit is contained in:
XMRig 2020-03-06 12:51:16 +07:00
parent 2020b71eeb
commit 7bf12dc81f
No known key found for this signature in database
GPG key ID: 446A53638BE94409

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);