From: <sv...@op...> - 2024-12-02 10:21:34
|
Author: manx Date: Mon Dec 2 11:21:28 2024 New Revision: 22447 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22447 Log: [Ref] IT Compression: Make clang static analyzer happy. Modified: trunk/OpenMPT/soundlib/ITCompression.cpp Modified: trunk/OpenMPT/soundlib/ITCompression.cpp ============================================================================== --- trunk/OpenMPT/soundlib/ITCompression.cpp Mon Dec 2 10:51:07 2024 (r22446) +++ trunk/OpenMPT/soundlib/ITCompression.cpp Mon Dec 2 11:21:28 2024 (r22447) @@ -155,10 +155,11 @@ { if(bwt[i] != width) { + MPT_ASSERT(width >= 0); if(width <= 6) { // Mode A: 1 to 6 bits - MPT_ASSERT(width); + MPT_ASSERT(width != 0); WriteBits(width, (1 << (width - 1))); WriteBits(Properties::fetchA, ConvertWidth(width, bwt[i])); } else if(width < Properties::defWidth) |