ScalarCodec fix

This commit is contained in:
Pavel Kirienko 2014-02-21 15:58:04 +04:00
parent df04599ac0
commit 232b69580f

View File

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