diff options
author | thealexkrut <[email protected]> | 2025-02-06 10:38:16 +0300 |
---|---|---|
committer | thealexkrut <[email protected]> | 2025-02-06 11:02:04 +0300 |
commit | cf810508f94ce9705109d168f5519c809b2a9dee (patch) | |
tree | 3413123fb1b1a5233d4417a4a27834a0d09b65af /library/cpp | |
parent | b95f4be407ba7fb5befb4293f04fb96fd795bd3a (diff) |
,Add Egyptian Arabic to cpp/langs
**Частично фиксит проблемы из** 2109
Добавил египетский арабский - в енаме получается 128 значений, поэтому проблему с разпознавалкой не затронули
Поправил багу в битсете
Поменял ассерт в браузере с 128 на 256, думаю ок, ибо что так - что так в ui8 влезает
commit_hash:aea65db5f5e8e2a4ba25a43e25bfe10d3ab77bd8
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/enumbitset/enumbitset.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/enumbitset/enumbitset.h b/library/cpp/enumbitset/enumbitset.h index 41864c3a04f..1470a1ff2f7 100644 --- a/library/cpp/enumbitset/enumbitset.h +++ b/library/cpp/enumbitset/enumbitset.h @@ -309,7 +309,7 @@ public: static const size_t chunkSize = sizeof(typename TParent::TChunk) * 8; static const size_t numDig = chunkSize / 4; static const size_t highChunkBits = (BitsetSize + chunkSize - 1) % chunkSize + 1; - static const typename TParent::TChunk highChunkBitsMask = (typename TParent::TChunk(1) << highChunkBits) - 1; + static const typename TParent::TChunk highChunkBitsMask = (highChunkBits == chunkSize ? 0 : (typename TParent::TChunk(1) << highChunkBits)) - 1; Reset(); for (size_t prev = s.length(), n = s.length() - numDig, pos = 0; prev; n -= numDig, pos += chunkSize) { |