diff options
author | Andreas Rheinhardt <[email protected]> | 2025-09-13 21:27:27 +0200 |
---|---|---|
committer | Andreas Rheinhardt <[email protected]> | 2025-09-13 21:27:27 +0200 |
commit | bc545bae3be34e71980f93259dfca1b8bb28bd92 (patch) | |
tree | e158aa27738fede2f8c7173ff58ec8557bd37fad | |
parent | 1294ab5db1b029b05e27ddefe1dd583087644b3c (diff) |
tests/checkasm/sw_ops: Avoid 1 << 32
It is UB.
Signed-off-by: Andreas Rheinhardt <[email protected]>
-rw-r--r-- | tests/checkasm/sw_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/checkasm/sw_ops.c b/tests/checkasm/sw_ops.c index 57fd501fa1..20b697bf25 100644 --- a/tests/checkasm/sw_ops.c +++ b/tests/checkasm/sw_ops.c @@ -426,7 +426,7 @@ static void check_pack_unpack(void) .pack = pack, }); - CHECK_RANGE(FMT("unpack_%s", pat), (1 << total) - 1, 1, num, type, type, { + CHECK_RANGE(FMT("unpack_%s", pat), UINT32_MAX >> (32 - total), 1, num, type, type, { .op = SWS_OP_UNPACK, .type = type, .pack = pack, |