1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 00:16:39 +02:00

Avoid needing to cast CurrentUplink by changing it to a size_t.

This commit is contained in:
Sadie Powell
2023-11-16 21:49:48 +00:00
parent 46209895e3
commit 70d72b62df
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ void Uplink::Connect()
return;
}
if (static_cast<unsigned>(++Anope::CurrentUplink) >= Config->Uplinks.size())
if (++Anope::CurrentUplink >= Config->Uplinks.size())
Anope::CurrentUplink = 0;
Configuration::Uplink &u = Config->Uplinks[Anope::CurrentUplink];