mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-05 00:40:00 +00:00
Resolve [-Wsign-compare]
This commit is contained in:
parent
1312624e05
commit
1cf30055b2
@ -486,7 +486,7 @@ FSTEntry ScanDirectoryTree(std::string directory, bool recursive)
|
|||||||
}
|
}
|
||||||
else if (cur_depth < prev_depth)
|
else if (cur_depth < prev_depth)
|
||||||
{
|
{
|
||||||
while (dir_fsts.size() - 1 != cur_depth)
|
while (dir_fsts.size() != static_cast<size_t>(cur_depth) + 1u)
|
||||||
{
|
{
|
||||||
calc_dir_size(dir_fsts.top());
|
calc_dir_size(dir_fsts.top());
|
||||||
dir_fsts.pop();
|
dir_fsts.pop();
|
||||||
|
@ -384,7 +384,8 @@ void CEXIETHERNET::BuiltInBBAInterface::HandleTCPFrame(const Common::TCPPacket&
|
|||||||
if (size > 0)
|
if (size > 0)
|
||||||
{
|
{
|
||||||
// only if contain data
|
// only if contain data
|
||||||
if (static_cast<int>(this_seq - ref->ack_num) >= 0 && data.size() >= size)
|
if (static_cast<int>(this_seq - ref->ack_num) >= 0 &&
|
||||||
|
data.size() >= static_cast<size_t>(size))
|
||||||
{
|
{
|
||||||
ref->tcp_socket.send(data.data(), size);
|
ref->tcp_socket.send(data.data(), size);
|
||||||
ref->ack_num += size;
|
ref->ack_num += size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user