summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-08-02 20:56:16 +0200
committerGitHub <noreply@github.com>2021-08-02 20:56:16 +0200
commitffe553edbf8c87f5f4535bf49b04c32917ca7367 (patch)
treec1dcf2c59027c60b6b6e4bd7be28e2982c4c5b08
parentdecoders: Optimize swizzle copy performance (#6790) (diff)
parentnetwork: fix ternary operator in Socket::SendTo (diff)
downloadyuzu-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.cpp2
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) {