mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-15 10:27:54 +00:00
msvc: set warning level to /W4 globally
And fix a bunch of warnings
This commit is contained in:
parent
76a740cf3a
commit
7f0de0f204
13 changed files with 17 additions and 20 deletions
|
@ -805,7 +805,7 @@ IPv4Address Room::RoomImpl::GenerateFakeIPAddress() {
|
|||
std::uniform_int_distribution<> dis(0x01, 0xFE); // Random byte between 1 and 0xFE
|
||||
do {
|
||||
for (std::size_t i = 2; i < result_ip.size(); ++i) {
|
||||
result_ip[i] = dis(random_gen);
|
||||
result_ip[i] = static_cast<u8>(dis(random_gen));
|
||||
}
|
||||
} while (!IsValidFakeIPAddress(result_ip));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue