mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-10 21:04:37 +00:00
#548 Fixed macOS build.
This commit is contained in:
parent
b13640e4a1
commit
01c8245846
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue