Skip to content

Commit 5868016

Browse files
committed
address a clang scan warning (II)
1 parent fcb822a commit 5868016

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,6 +1445,10 @@ inline uint32 build_bit_ui(uint32 beg, uint32 end)
14451445
{
14461446
end = 31;
14471447
}
1448+
if (beg > 31)
1449+
{
1450+
beg = 31;
1451+
}
14481452
if (end == 31)
14491453
{
14501454
myll = (uint32)(-1);

0 commit comments

Comments
 (0)