Permalink
Browse files

BTReal: Correct comparison of integers of different signs

  • Loading branch information...
MerryMage committed Oct 15, 2018
1 parent b5d855c commit 688e8db9048a115cf73231c5eebc411c58285e87
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)

0 comments on commit 688e8db

Please sign in to comment.