mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 04:40:36 +08:00
ScalarCodec fix
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user