mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 23:33:33 +08:00
Fixed C++11 support
This commit is contained in:
@@ -142,7 +142,7 @@ TEST(BitStream, BitByBit)
|
||||
{
|
||||
const bool value = counter % 3 == 0;
|
||||
binary_string.push_back(value ? '1' : '0');
|
||||
const uint8_t data[] = { value << 7 };
|
||||
const uint8_t data[] = { uint8_t(value << 7) };
|
||||
ASSERT_EQ(1, bs_wr.write(data, 1));
|
||||
}
|
||||
binary_string.push_back(' ');
|
||||
|
||||
Reference in New Issue
Block a user