diff options
| author | levlam <levlam@telegram.org> | 2023-10-30 16:54:39 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2023-10-30 16:54:39 +0300 |
| commit | bdbee0765bdc0bc3fa861d26153b3d3e31bdca89 (patch) | |
| tree | f8ee3dde16fc4d75606da7d75c8ae2b3a21bbd7f /benchmark | |
| parent | 24b09ce83df1193f9baa468f12e6b5d35b8125c1 (diff) | |
Fix warnings.
Diffstat (limited to 'benchmark')
| -rw-r--r-- | benchmark/bench_misc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/bench_misc.cpp b/benchmark/bench_misc.cpp index 5ef9cd4b4..2142a8e51 100644 --- a/benchmark/bench_misc.cpp +++ b/benchmark/bench_misc.cpp @@ -96,7 +96,7 @@ BENCH(ToStringIntBig, "to_string<int> big") { BENCH(TlToStringUpdateFile, "TL to_string updateFile") { auto x = td::td_api::make_object<td::td_api::updateFile>(get_file_object()); - td::uint32 res = 0; + std::size_t res = 0; for (int i = 0; i < n; i++) { res += to_string(x).size(); } @@ -119,7 +119,7 @@ BENCH(TlToStringMessage, "TL to_string message") { x->content_ = td::td_api::make_object<td::td_api::messagePhoto>( std::move(photo), td::td_api::make_object<td::td_api::formattedText>(), false, false); - td::uint32 res = 0; + std::size_t res = 0; for (int i = 0; i < n; i++) { res += to_string(x).size(); } |
