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:
tridge60@gmail.com 2011-07-09 12:09:50 +00:00
parent a16b00b5bf
commit 488a2805f7

View File

@ -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;