mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Fixed build
This commit is contained in:
parent
d416d214a5
commit
9f38cb768f
@ -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? */
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user