Skip to content

Commit

Permalink
Fix compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
daid committed Aug 23, 2024
1 parent 2bd015a commit 7b4ceb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/multiplayer_server_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void ServerScanner::update(float /*gameDelta*/)
recv_packet >> verification >> version_nr >> name;
if (verification == multiplayerVerficationNumber && (version_nr == version_number || version_nr == 0 || version_number == 0))
{
updateServerEntry({ServerType::LAN, recv_address, recv_port, name, {}});
updateServerEntry({ServerType::LAN, recv_address, uint64_t(recv_port), name, {}});
}
}
}
Expand Down Expand Up @@ -172,7 +172,7 @@ void ServerScanner::masterServerScanThread()
if (version == version_number || version == 0 || version_number == 0)
{
master_server_list_mutex.lock();
master_server_update_list.push_back({ServerType::MasterServer, address, part_port, name, {}});
master_server_update_list.push_back({ServerType::MasterServer, address, uint64_t(part_port), name, {}});
master_server_list_mutex.unlock();
}
}
Expand Down

0 comments on commit 7b4ceb8

Please sign in to comment.