mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix clang-tidy
This commit is contained in:
parent
498c4cf445
commit
36aaeecc2f
@ -35,12 +35,12 @@ private:
|
|||||||
using Counter = UInt64;
|
using Counter = UInt64;
|
||||||
size_t category_count;
|
size_t category_count;
|
||||||
|
|
||||||
Counter & counter(AggregateDataPtr __restrict place, size_t i, bool what) const
|
static Counter & counter(AggregateDataPtr __restrict place, size_t i, bool what)
|
||||||
{
|
{
|
||||||
return reinterpret_cast<Counter *>(place)[i * 2 + (what ? 1 : 0)];
|
return reinterpret_cast<Counter *>(place)[i * 2 + (what ? 1 : 0)];
|
||||||
}
|
}
|
||||||
|
|
||||||
const Counter & counter(ConstAggregateDataPtr __restrict place, size_t i, bool what) const
|
static const Counter & counter(ConstAggregateDataPtr __restrict place, size_t i, bool what)
|
||||||
{
|
{
|
||||||
return reinterpret_cast<const Counter *>(place)[i * 2 + (what ? 1 : 0)];
|
return reinterpret_cast<const Counter *>(place)[i * 2 + (what ? 1 : 0)];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user