msvc: set warning level to /W4 globally
And fix a bunch of warnings
This commit is contained in:
parent
89a2d48cf8
commit
785e480b62
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