mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Fix -Wtype-limits warnings and remove disabling of -Wtype-limits
This commit is contained in:
parent
5038b9aaec
commit
3993102e88
6 changed files with 20 additions and 18 deletions
|
@ -1361,7 +1361,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
|||
u8 client_max = data[2];
|
||||
u8 our_max = SER_FMT_VER_HIGHEST_READ;
|
||||
// Use the highest version supported by both
|
||||
u8 deployed = std::min(client_max, our_max);
|
||||
int deployed = std::min(client_max, our_max);
|
||||
// If it's lower than the lowest supported, give up.
|
||||
if(deployed < SER_FMT_VER_LOWEST)
|
||||
deployed = SER_FMT_VER_INVALID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue