summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-01-06 04:10:56 +0100
committerbunnei <bunneidev@gmail.com>2015-01-06 04:10:56 +0100
commit9b83f0e15859ed56a8e25f204484d2cd34b74f16 (patch)
tree5c04821a59dfbb0ae16d18aa8c1f014a51b44bec /src/core/hle/service
parentMerge pull request #422 from lioncash/bxj (diff)
parentSilence some -Wsign-compare warnings. (diff)
downloadyuzu-9b83f0e15859ed56a8e25f204484d2cd34b74f16.tar
yuzu-9b83f0e15859ed56a8e25f204484d2cd34b74f16.tar.gz
yuzu-9b83f0e15859ed56a8e25f204484d2cd34b74f16.tar.bz2
yuzu-9b83f0e15859ed56a8e25f204484d2cd34b74f16.tar.lz
yuzu-9b83f0e15859ed56a8e25f204484d2cd34b74f16.tar.xz
yuzu-9b83f0e15859ed56a8e25f204484d2cd34b74f16.tar.zst
yuzu-9b83f0e15859ed56a8e25f204484d2cd34b74f16.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/soc_u.cpp8
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 8e7abcf9c..f502c6afe 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);