Fixed build

This commit is contained in:
Alexey Milovidov 2020-03-11 10:19:44 +03:00
parent d416d214a5
commit 9f38cb768f
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ uint64_t getMemoryAmountOrZero()
#endif
uint64_t size = 0; /* 64-bit */
size_t len = sizeof(size);
if (sysctl(mib, 2, &size, &len, NULL, 0) == 0)
if (sysctl(mib, 2, &size, &len, nullptr, 0) == 0)
return size;
return 0; /* Failed? */
@ -88,7 +88,7 @@ uint64_t getMemoryAmountOrZero()
#endif
unsigned int size = 0; /* 32-bit */
size_t len = sizeof(size);
if (sysctl(mib, 2, &size, &len, NULL, 0) == 0)
if (sysctl(mib, 2, &size, &len, nullptr, 0) == 0)
return size;
return 0; /* Failed? */

View File

@ -67,7 +67,7 @@ inline bool operator==(SmallStringRef lhs, SmallStringRef rhs)
#ifdef __SSE2__
return memequalSSE2Wide(lhs.data(), rhs.data(), lhs.size);
#else
return false;
return 0 == memcmp(lhs.data(), rhs.data(), lhs.size);
#endif
}