diff options
| author | Tilka <tilkax@gmail.com> | 2018-10-15 19:36:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-15 19:36:45 +0100 |
| commit | cb576bf3820da934b09bb81bee445721e1cdb39e (patch) | |
| tree | 8dad18b949e510da5044ddd8df3d48041a6538f9 /Source/Core | |
| parent | cffca7cbecef0043bd8312c27769e06c30ab67dc (diff) | |
| parent | 688e8db9048a115cf73231c5eebc411c58285e87 (diff) | |
Merge pull request #7503 from MerryMage/signed_comparison
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) |
