mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
Fix Darwin build (std::max candidate template)
This commit is contained in:
parent
8fc470d1c5
commit
df63ada6cc
@ -243,7 +243,7 @@ struct PositionImpl
|
||||
UInt64 start_pos,
|
||||
UInt64 & res)
|
||||
{
|
||||
auto start = std::max(start_pos, 1ul);
|
||||
auto start = std::max(start_pos, UInt64(1));
|
||||
|
||||
if (needle.size() == 0)
|
||||
{
|
||||
@ -311,7 +311,7 @@ struct PositionImpl
|
||||
size_t needle_size = needle_offsets[i] - prev_needle_offset - 1;
|
||||
size_t haystack_size = haystack_offsets[i] - prev_haystack_offset - 1;
|
||||
|
||||
auto start = start_pos != nullptr ? std::max(start_pos->getUInt(i), 1ul) : 1ul;
|
||||
auto start = start_pos != nullptr ? std::max(start_pos->getUInt(i), UInt64(1)) : UInt64(1);
|
||||
|
||||
if (start > haystack_size + 1)
|
||||
{
|
||||
@ -371,7 +371,7 @@ struct PositionImpl
|
||||
{
|
||||
size_t needle_size = needle_offsets[i] - prev_needle_offset - 1;
|
||||
|
||||
auto start = start_pos != nullptr ? std::max(start_pos->getUInt(i), 1ul) : 1ul;
|
||||
auto start = start_pos != nullptr ? std::max(start_pos->getUInt(i), UInt64(1)) : UInt64(1);
|
||||
|
||||
if (start > haystack.size() + 1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user