The branch, master has been updated
       via  bc545bae3be34e71980f93259dfca1b8bb28bd92 (commit)
      from  1294ab5db1b029b05e27ddefe1dd583087644b3c (commit)


- Log -----------------------------------------------------------------
commit bc545bae3be34e71980f93259dfca1b8bb28bd92
Author:     Andreas Rheinhardt <andreas.rheinha...@outlook.com>
AuthorDate: Sat Sep 13 21:27:27 2025 +0200
Commit:     Andreas Rheinhardt <andreas.rheinha...@outlook.com>
CommitDate: Sat Sep 13 21:27:27 2025 +0200

    tests/checkasm/sw_ops: Avoid 1 << 32
    
    It is UB.
    
    Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com>

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,

-----------------------------------------------------------------------

Summary of changes:
 tests/checkasm/sw_ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 

_______________________________________________
ffmpeg-cvslog mailing list -- ffmpeg-cvslog@ffmpeg.org
To unsubscribe send an email to ffmpeg-cvslog-le...@ffmpeg.org

Reply via email to