aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmark
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2023-08-26 04:45:11 +0300
committerlevlam <levlam@telegram.org>2023-08-26 04:45:11 +0300
commit9b5b4b4698155f779143ec14a85aba6f1c75da3e (patch)
tree935ed78072be7311bb9563c0ecaca729f7acca5f /benchmark
parentc83149661bbda68252c4659c33ede9322f9a5f20 (diff)
Use faster hash in downcast_call benchmark.
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/bench_misc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/bench_misc.cpp b/benchmark/bench_misc.cpp
index 9089890fb..7cb175699 100644
--- a/benchmark/bench_misc.cpp
+++ b/benchmark/bench_misc.cpp
@@ -46,7 +46,7 @@ class F {
template <class T>
void operator()(const T &x) const {
- sum += static_cast<td::uint32>(x.get_id());
+ sum += static_cast<td::uint32>(reinterpret_cast<std::uintptr_t>(&x));
}
};