Release 1.2.2

This commit is contained in:
Danila Kutenin
2025-03-26 15:19:02 +00:00
parent de19405e58
commit 6af9287fbd
5 changed files with 20 additions and 4 deletions

View File

@@ -1690,7 +1690,8 @@ constexpr uint32_t CalculateNeeded(uint8_t tag) {
#if __cplusplus >= 201402L
constexpr bool VerifyCalculateNeeded() {
for (int i = 0; i < 1; i++) {
if (CalculateNeeded(i) != (char_table[i] >> 11) + 1) return false;
if (CalculateNeeded(i) != static_cast<uint32_t>((char_table[i] >> 11)) + 1)
return false;
}
return true;
}