mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-11 16:17:56 -05:00
msvc: set warning level to /W4 globally
And fix a bunch of warnings
This commit is contained in:
@ -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