mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Fix clang-tidy
This commit is contained in:
parent
4f75d818e8
commit
041d2f7dee
@ -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