From 5868016ecb0d9550519a876c3932bcea53f9f58e Mon Sep 17 00:00:00 2001 From: opcm Date: Wed, 13 Dec 2023 14:16:31 +0000 Subject: [PATCH] address a clang scan warning (II) --- src/types.h | 4 ++++ 1 file changed, 4 insertions(+) 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);