diff options
author | Rohit Nirmal <rohitnirmal9@gmail.com> | 2014-12-12 18:21:58 +0100 |
---|---|---|
committer | Rohit Nirmal <rohitnirmal9@gmail.com> | 2015-01-01 23:38:36 +0100 |
commit | c589d820520663be438430ac4a443b34f7bb442c (patch) | |
tree | 14d9c76e3a6572eb15ccc9cf388e511f661daa32 /src/core | |
parent | Merge pull request #380 from Yllodra/graphics-debugger-save-state (diff) | |
download | yuzu-c589d820520663be438430ac4a443b34f7bb442c.tar yuzu-c589d820520663be438430ac4a443b34f7bb442c.tar.gz yuzu-c589d820520663be438430ac4a443b34f7bb442c.tar.bz2 yuzu-c589d820520663be438430ac4a443b34f7bb442c.tar.lz yuzu-c589d820520663be438430ac4a443b34f7bb442c.tar.xz yuzu-c589d820520663be438430ac4a443b34f7bb442c.tar.zst yuzu-c589d820520663be438430ac4a443b34f7bb442c.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/soc_u.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/soc_u.cpp b/src/core/hle/service/soc_u.cpp index 9fbf18b26..3baf8908f 100644 --- a/src/core/hle/service/soc_u.cpp +++ b/src/core/hle/service/soc_u.cpp @@ -308,11 +308,11 @@ static void Socket(Service::Interface* self) { u32 socket_handle = static_cast<u32>(::socket(domain, type, protocol)); - if (socket_handle != SOCKET_ERROR_VALUE) + if ((s32)socket_handle != SOCKET_ERROR_VALUE) open_sockets[socket_handle] = { socket_handle, true }; int result = 0; - if (socket_handle == SOCKET_ERROR_VALUE) + if ((s32)socket_handle == SOCKET_ERROR_VALUE) result = TranslateError(GET_ERRNO); cmd_buffer[1] = result; @@ -436,11 +436,11 @@ static void Accept(Service::Interface* self) { socklen_t addr_len = sizeof(addr); u32 ret = static_cast<u32>(::accept(socket_handle, &addr, &addr_len)); - if (ret != SOCKET_ERROR_VALUE) + if ((s32)ret != SOCKET_ERROR_VALUE) open_sockets[ret] = { ret, true }; int result = 0; - if (ret == SOCKET_ERROR_VALUE) { + if ((s32)ret == SOCKET_ERROR_VALUE) { result = TranslateError(GET_ERRNO); } else { CTRSockAddr ctr_addr = CTRSockAddr::FromPlatform(addr); |