From 10f854ce7faf573e3db4dc3e224991bcd4118b5c 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..884c219c 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) + { + return 0; + } if (end == 31) { myll = (uint32)(-1);