msvc: set warning level to /W4 globally
And fix a bunch of warnings
This commit is contained in:
1 parent
89a2d48cf8
commit
785e480b62
13 files changed
+17
-20
No files matched your search
@@ -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));
|
||||
|
||||
|
||||
Reference in new issue
Block a user