diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-08-02 20:56:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 20:56:16 +0200 |
commit | ffe553edbf8c87f5f4535bf49b04c32917ca7367 (patch) | |
tree | c1dcf2c59027c60b6b6e4bd7be28e2982c4c5b08 | |
parent | decoders: Optimize swizzle copy performance (#6790) (diff) | |
parent | network: fix ternary operator in Socket::SendTo (diff) | |
download | yuzu-ffe553edbf8c87f5f4535bf49b04c32917ca7367.tar yuzu-ffe553edbf8c87f5f4535bf49b04c32917ca7367.tar.gz yuzu-ffe553edbf8c87f5f4535bf49b04c32917ca7367.tar.bz2 yuzu-ffe553edbf8c87f5f4535bf49b04c32917ca7367.tar.lz yuzu-ffe553edbf8c87f5f4535bf49b04c32917ca7367.tar.xz yuzu-ffe553edbf8c87f5f4535bf49b04c32917ca7367.tar.zst yuzu-ffe553edbf8c87f5f4535bf49b04c32917ca7367.zip |
-rw-r--r-- | src/core/network/network.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/network/network.cpp b/src/core/network/network.cpp index 526bfa110..375bc79ec 100644 --- a/src/core/network/network.cpp +++ b/src/core/network/network.cpp @@ -570,7 +570,7 @@ std::pair<s32, Errno> Socket::SendTo(u32 flags, const std::vector<u8>& message, ASSERT(flags == 0); const sockaddr* to = nullptr; - const int tolen = addr ? 0 : sizeof(sockaddr); + const int tolen = addr ? sizeof(sockaddr) : 0; sockaddr host_addr_in; if (addr) { |