diff options
author | Danila Malyutin <danilaml@users.noreply.github.com> | 2023-09-02 19:45:06 +0200 |
---|---|---|
committer | Danila Malyutin <danilaml@users.noreply.github.com> | 2023-09-03 16:42:10 +0200 |
commit | 785e480b62f4ed306e389300a533c73f4e03e2bd (patch) | |
tree | 3374c36560b8645f2c0a39e950793e0ce8c5163d /src/network/room.cpp | |
parent | Merge pull request #11430 from liamwhite/validation-error-whats-that (diff) | |
download | yuzu-785e480b62f4ed306e389300a533c73f4e03e2bd.tar yuzu-785e480b62f4ed306e389300a533c73f4e03e2bd.tar.gz yuzu-785e480b62f4ed306e389300a533c73f4e03e2bd.tar.bz2 yuzu-785e480b62f4ed306e389300a533c73f4e03e2bd.tar.lz yuzu-785e480b62f4ed306e389300a533c73f4e03e2bd.tar.xz yuzu-785e480b62f4ed306e389300a533c73f4e03e2bd.tar.zst yuzu-785e480b62f4ed306e389300a533c73f4e03e2bd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/network/room.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/room.cpp b/src/network/room.cpp index e456ea09c..d87db37de 100644 --- a/src/network/room.cpp +++ b/src/network/room.cpp @@ -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)); |