diff options
| author | levlam <levlam@telegram.org> | 2021-10-17 22:56:40 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2021-10-17 22:56:40 +0300 |
| commit | 0782f56408e2a650aad58ac9e97f6464639b4804 (patch) | |
| tree | 216961ad4fec67fc7b4dd1aae14514d474c5a72a /benchmark | |
| parent | 9b7957c9c6d66365c7810085db3b3f6420ef8aeb (diff) | |
Use uint32 instead of unsigned int if possible.
Diffstat (limited to 'benchmark')
| -rw-r--r-- | benchmark/bench_queue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/bench_queue.cpp b/benchmark/bench_queue.cpp index 749a37770..a442cfb26 100644 --- a/benchmark/bench_queue.cpp +++ b/benchmark/bench_queue.cpp @@ -591,7 +591,7 @@ class QueueBenchmark2 final : public td::Benchmark { void server_process(qvalue_t value) { int no = value & 0x00FFFFFF; - int co = static_cast<int>(static_cast<unsigned int>(value) >> 24); + int co = static_cast<int>(static_cast<td::uint32>(value) >> 24); // std::fprintf(stderr, "-->%d %d\n", co, no); if (co < 0 || co >= connections_n || no != server_conn[co]++) { std::fprintf(stderr, "%d %d\n", co, no); @@ -632,7 +632,7 @@ class QueueBenchmark2 final : public td::Benchmark { void client_process(qvalue_t value) { int no = value & 0x00FFFFFF; - int co = static_cast<int>(static_cast<unsigned int>(value) >> 24); + int co = static_cast<int>(static_cast<td::uint32>(value) >> 24); // std::fprintf(stderr, "<--%d %d\n", co, no); if (co < 0 || co >= connections_n || no != client_conn[co]++) { std::fprintf(stderr, "%d %d\n", co, no); |
