diff options
| author | MerryMage <MerryMage@users.noreply.github.com> | 2018-10-15 19:30:58 +0100 |
|---|---|---|
| committer | MerryMage <MerryMage@users.noreply.github.com> | 2018-10-15 19:30:58 +0100 |
| commit | 688e8db9048a115cf73231c5eebc411c58285e87 (patch) | |
| tree | 7db00a13fe68cc789a6640cdd293f2a58c514281 /Source/Core | |
| parent | b5d855caf7a2bed70edca0385922ffc6dfb5286f (diff) | |
BTReal: Correct comparison of integers of different signs
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/IOS/USB/Bluetooth/BTReal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Core/IOS/USB/Bluetooth/BTReal.cpp b/Source/Core/Core/IOS/USB/Bluetooth/BTReal.cpp index 1ca10ef70d..becd2032c8 100644 --- a/Source/Core/Core/IOS/USB/Bluetooth/BTReal.cpp +++ b/Source/Core/Core/IOS/USB/Bluetooth/BTReal.cpp @@ -363,7 +363,7 @@ void BluetoothReal::WaitForHCICommandComplete(const u16 opcode) { const int ret = libusb_interrupt_transfer(m_handle, HCI_EVENT, buffer.data(), static_cast<int>(buffer.size()), &actual_length, 20); - if (ret != 0 || actual_length < sizeof(packet)) + if (ret != 0 || actual_length < static_cast<int>(sizeof(packet))) continue; std::memcpy(&packet, buffer.data(), sizeof(packet)); if (packet.EventType == HCI_EVENT_COMMAND_COMPL && packet.Opcode == opcode) |
