mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-27 21:44:08 +08:00
ScalarCodec fix
This commit is contained in:
parent
df04599ac0
commit
232b69580f
@ -78,7 +78,7 @@ class ScalarCodec
|
||||
static typename EnableIf<((sizeof(T) * 8) > BITLEN)>::Type
|
||||
clearExtraBits(T& value)
|
||||
{
|
||||
value &= (1 << BITLEN) - 1; // Signedness doesn't matter
|
||||
value &= (T(1) << BITLEN) - 1; // Signedness doesn't matter
|
||||
}
|
||||
|
||||
template <int BITLEN, typename T>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user