From debb7e56841600b3a9b0a2edff817dc5c068b1ac Mon Sep 17 00:00:00 2001 From: Nikolai Shostak <nikolai.shostak@vicuesoft.com> Date: Wed, 26 Apr 2023 13:40:18 +0300 Subject: [PATCH] Fix type of literal in assert expression Length of syntax element can be up to 63 bits. --- source/Lib/CommonLib/SEI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Lib/CommonLib/SEI.cpp b/source/Lib/CommonLib/SEI.cpp index 5a0a313c3..db777d82f 100644 --- a/source/Lib/CommonLib/SEI.cpp +++ b/source/Lib/CommonLib/SEI.cpp @@ -264,7 +264,7 @@ uint32_t SEIMultiviewAcquisitionInfo::xGetSyntaxElementLen( int expo, int prec, } assert( val >= 0 ); - assert( val <= ( ( 1 << len )- 1) ); + assert( val <= ( ( 1llu << len )- 1) ); return len; } -- GitLab