Skip to content

Commit

Permalink
address a clang scan warning
Browse files Browse the repository at this point in the history
  • Loading branch information
opcm authored and rdementi committed Dec 13, 2023
1 parent d324f09 commit 7fdc77e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,10 @@ inline uint32 build_bit_ui(uint32 beg, uint32 end)
{
assert(end <= 31);
uint32 myll = 0;
if (end > 31)
{
end = 31;
}
if (end == 31)
{
myll = (uint32)(-1);
Expand Down

0 comments on commit 7fdc77e

Please sign in to comment.