From 1cf30055b26fa2966c411ae9e70510daaa21174a Mon Sep 17 00:00:00 2001 From: Minty-Meeo <45425365+Minty-Meeo@users.noreply.github.com> Date: Thu, 23 Mar 2023 12:28:44 -0500 Subject: [PATCH] Resolve [-Wsign-compare] --- Source/Core/Common/FileUtil.cpp | 2 +- Source/Core/Core/HW/EXI/BBA/BuiltIn.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index b97185e769..a9e7c35946 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -486,7 +486,7 @@ FSTEntry ScanDirectoryTree(std::string directory, bool recursive) } else if (cur_depth < prev_depth) { - while (dir_fsts.size() - 1 != cur_depth) + while (dir_fsts.size() != static_cast(cur_depth) + 1u) { calc_dir_size(dir_fsts.top()); dir_fsts.pop(); diff --git a/Source/Core/Core/HW/EXI/BBA/BuiltIn.cpp b/Source/Core/Core/HW/EXI/BBA/BuiltIn.cpp index 4dfc0a30ee..6e5c3eac97 100644 --- a/Source/Core/Core/HW/EXI/BBA/BuiltIn.cpp +++ b/Source/Core/Core/HW/EXI/BBA/BuiltIn.cpp @@ -384,7 +384,8 @@ void CEXIETHERNET::BuiltInBBAInterface::HandleTCPFrame(const Common::TCPPacket& if (size > 0) { // only if contain data - if (static_cast(this_seq - ref->ack_num) >= 0 && data.size() >= size) + if (static_cast(this_seq - ref->ack_num) >= 0 && + data.size() >= static_cast(size)) { ref->tcp_socket.send(data.data(), size); ref->ack_num += size;