mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
Fix clang-tidy
This commit is contained in:
parent
cc28120761
commit
790cb730d6
@ -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