#548 Fixed macOS build.

This commit is contained in:
XMRig 2018-04-13 05:05:53 +07:00
parent b13640e4a1
commit 01c8245846
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

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