Index: sys/sys/bitstring.h =================================================================== --- sys/sys/bitstring.h +++ sys/sys/bitstring.h @@ -304,7 +304,7 @@ } _mask = _match ? _BITSTR_MASK : 0; - _maxshft = _bit_idx(_size - 1) == 0 ? _size : _BITSTR_BITS; + _maxshft = _bit_idx(_size - 1) == 0 ? _size : (int)_BITSTR_BITS; _value = 0; _curbitstr = _bitstr + _bit_idx(_start); _test = ~(_BITSTR_MASK << _bit_offset(_start));