Fixed macOS build and compile warning.

This commit is contained in:
XMRig 2021-02-02 13:53:45 +07:00
parent 631a8ca802
commit 2c8d8ee2ab
No known key found for this signature in database
GPG key ID: 446A53638BE94409
2 changed files with 3 additions and 2 deletions

View file

@ -68,11 +68,12 @@
namespace xmrig {
#ifdef XMRIG_OS_LINUX
static inline int hugePagesFlag(size_t size)
{
return (static_cast<int>(log2(size)) & MAP_HUGE_MASK) << MAP_HUGE_SHIFT;
}
#endif
} // namespace xmrig