mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
mavlink: fixed a signed/unsigned warning
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2814 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
a16b00b5bf
commit
488a2805f7
@ -805,7 +805,7 @@ static inline uint8_t put_bitfield_n_by_index(int32_t b, uint8_t bits, uint8_t p
|
||||
// First pack everything we can into the current 'open' byte
|
||||
//curr_bits_n = bits_remain << 3; // Equals bits_remain mod 8
|
||||
//FIXME
|
||||
if (bits_remain <= (8 - i_bit_index))
|
||||
if (bits_remain <= (unsigned)(8 - i_bit_index))
|
||||
{
|
||||
// Enough space
|
||||
curr_bits_n = bits_remain;
|
||||
|
Loading…
Reference in New Issue
Block a user