diff --git a/td/telegram/misc.cpp b/td/telegram/misc.cpp index 4bb1bf084..e950bbf7d 100644 --- a/td/telegram/misc.cpp +++ b/td/telegram/misc.cpp @@ -361,7 +361,7 @@ vector search_strings_by_prefix(const vector &strings, const stri hints.set_rating(i, i); } auto result = hints.search(query, limit, return_all_for_empty_query); - total_count = result.first; + total_count = narrow_cast(result.first); return transform(result.second, [](int64 key) { return narrow_cast(key); }); }