mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 16:05:05 -05:00
#548 Fixed macOS build.
This commit is contained in:
@@ -266,7 +266,7 @@ bool xmrig::CommonConfig::save()
|
||||
uv_fs_close(uv_default_loop(), &req, fd, nullptr);
|
||||
uv_fs_req_cleanup(&req);
|
||||
|
||||
LOG_NOTICE("configuration saved to: \"%s\"", m_fileName);
|
||||
LOG_NOTICE("configuration saved to: \"%s\"", m_fileName.data());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -279,7 +279,7 @@ bool xmrig::Config::parseInt(int key, int arg)
|
||||
{
|
||||
switch (key) {
|
||||
case xmrig::IConfig::ThreadsKey: /* --threads */
|
||||
if (m_threadsCount >= 0 && arg < 1024) {
|
||||
if (arg >= 0 && arg < 1024) {
|
||||
m_threadsCount = arg;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user