sources/network/rconsession.cpp

changeset 185
e83ec58cc458
parent 183
9b6a0daedfc0
child 186
9330b93d9946
--- a/sources/network/rconsession.cpp	Wed Jan 27 14:06:45 2021 +0200
+++ b/sources/network/rconsession.cpp	Wed Jan 27 14:16:58 2021 +0200
@@ -213,9 +213,9 @@
 					{
 						m_interface->print("Completions for '%s':\n", m_lastTabComplete.data());
 
-						for (int i : range(0, static_cast<int>(completes.size()), 8))
+						for (std::size_t i = 0; i < completes.size(); i += 8)
 						{
-							const int end = min(i + 8, static_cast<int>(completes.size()));
+							const int end = min(i + 8, completes.size());
 							std::vector<std::string> splices = splice(completes, i, end);
 							m_interface->print("- %s\n", join_string_list(splices, ", ").data());
 						}

mercurial