Fix clang-tidy

This commit is contained in:
Alexey Milovidov 2022-09-19 00:23:46 +02:00
parent 56fd38de44
commit 5d9e125c71

View File

@ -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)];
} }