diff --git a/src/types.h b/src/types.h index a3f3422b..49d6bfb2 100644 --- a/src/types.h +++ b/src/types.h @@ -1445,6 +1445,10 @@ inline uint32 build_bit_ui(uint32 beg, uint32 end) { end = 31; } + if (beg > 31) + { + beg = 31; + } if (end == 31) { myll = (uint32)(-1);