From 84a6ffed252ae9c55b6af6375e1c9a63898415d2 Mon Sep 17 00:00:00 2001 From: Reg Tiangha Date: Thu, 21 Mar 2024 18:49:55 -0600 Subject: [PATCH] fix build issue with gcc 13.2.0 --- src/core/hle/service/soc/soc_u.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hle/service/soc/soc_u.cpp b/src/core/hle/service/soc/soc_u.cpp index 810b4c41e..12bc0e401 100644 --- a/src/core/hle/service/soc/soc_u.cpp +++ b/src/core/hle/service/soc/soc_u.cpp @@ -2251,7 +2251,7 @@ std::optional SOC_U::GetDefaultInterfaceInfo() { socklen_t s_info_len = sizeof(struct sockaddr_in); sockaddr_in s_info; - if ((sock_fd = ::socket(AF_INET, SOCK_STREAM, 0)) == -1) { + if (static_cast(sock_fd = ::socket(AF_INET, SOCK_STREAM, 0)) == -1) { return std::nullopt; } @@ -2269,7 +2269,7 @@ std::optional SOC_U::GetDefaultInterfaceInfo() { #ifdef _WIN32 sock_fd = WSASocket(AF_INET, SOCK_DGRAM, 0, 0, 0, 0); - if (sock_fd == SOCKET_ERROR) { + if (static_cast(sock_fd) == SOCKET_ERROR) { return std::nullopt; }