From e37f3c17af9b9dafdd4705ed68baad3dd68e1117 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 17 Sep 2022 22:54:21 +0300 Subject: [PATCH] Fix warnings. --- tdutils/test/HashSet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tdutils/test/HashSet.cpp b/tdutils/test/HashSet.cpp index 07bc1ce81..cd577d69b 100644 --- a/tdutils/test/HashSet.cpp +++ b/tdutils/test/HashSet.cpp @@ -315,7 +315,7 @@ TEST(FlatHashMap, stress_test) { ASSERT_EQ(ref[key], tbl[key]); }); - add_step("reserve", 10, [&] { tbl.reserve(rnd() % max_table_size); }); + add_step("reserve", 10, [&] { tbl.reserve(static_cast(rnd() % max_table_size)); }); add_step("find", 1000, [&] { auto key = gen_key(); @@ -398,7 +398,7 @@ TEST(FlatHashSet, stress_test) { tbl.insert(key); }); - add_step("reserve", 10, [&] { tbl.reserve(rnd() % max_table_size); }); + add_step("reserve", 10, [&] { tbl.reserve(static_cast(rnd() % max_table_size)); }); add_step("find", 1000, [&] { auto key = gen_key();