Fix some warnings

This commit is contained in:
Megamouse 2024-06-30 10:35:36 +02:00
parent 44e4e67aa8
commit 352229efbd
2 changed files with 2 additions and 2 deletions

View file

@ -6747,7 +6747,7 @@ auto FCFID()
static const auto exec = [](ppu_thread& ppu, auto&& d, auto&& b) static const auto exec = [](ppu_thread& ppu, auto&& d, auto&& b)
{ {
f64 r = std::bit_cast<s64>(b); f64 r = static_cast<f64>(std::bit_cast<s64>(b));
d = r; d = r;
ppu_set_fpcc<Flags...>(ppu, r, 0.); ppu_set_fpcc<Flags...>(ppu, r, 0.);
}; };

View file

@ -1736,7 +1736,7 @@ error_code lv2_socket::abort_socket(s32 flags)
lv2_obj::append(ppu.get()); lv2_obj::append(ppu.get());
} }
const u32 num_waiters = qcopy.size(); const u32 num_waiters = ::size32(qcopy);
if (num_waiters && (type == SYS_NET_SOCK_STREAM || type == SYS_NET_SOCK_DGRAM)) if (num_waiters && (type == SYS_NET_SOCK_STREAM || type == SYS_NET_SOCK_DGRAM))
{ {
auto& nc = g_fxo->get<network_context>(); auto& nc = g_fxo->get<network_context>();