From 7fdc77e4a7fb8d57d728f61976c983933ee02245 Mon Sep 17 00:00:00 2001 From: opcm Date: Wed, 13 Dec 2023 13:59:20 +0000 Subject: [PATCH] address a clang scan warning --- src/types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/types.h b/src/types.h index 2ca34f8d..a3f3422b 100644 --- a/src/types.h +++ b/src/types.h @@ -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);