Skip to content

Commit

Permalink
fixed the size_t vs int comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
aavaa-farnood committed Nov 2, 2023
1 parent 19bcd07 commit e7b38d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/board_controller/aavaa/aavaa_v3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ void AAVAAv3::read_data (
Incoming_BLE_Data_Buffer.insert (Incoming_BLE_Data_Buffer.end (), data, data + size);
}

while (static_cast<int> (Incoming_BLE_Data_Buffer.size ()) >= SIZE_OF_DATA_FRAME)
while (Incoming_BLE_Data_Buffer.size () >= static_cast<size_t> (SIZE_OF_DATA_FRAME))
{
if (Incoming_BLE_Data_Buffer[0] != START_BYTE)
{
Expand Down

0 comments on commit e7b38d6

Please sign in to comment.