aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/bitmap.h
diff options
context:
space:
mode:
authorilnurkh <ilnurkh@yandex-team.com>2023-10-10 10:09:12 +0300
committerilnurkh <ilnurkh@yandex-team.com>2023-10-10 10:26:34 +0300
commit335c640261b6272bc052a251d9b8780150090b45 (patch)
tree7d4a4954aacb63514087edaaf1cd0c9999fcb94d /util/generic/bitmap.h
parentb359f0072dbc794d0287c26984dd0ea0a2c27efc (diff)
downloadydb-335c640261b6272bc052a251d9b8780150090b45.tar.gz
Y_VERIFY->Y_ABORT_UNLESS at ^u
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'util/generic/bitmap.h')
-rw-r--r--util/generic/bitmap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/generic/bitmap.h b/util/generic/bitmap.h
index 18a153bc5f..dfac88e4b8 100644
--- a/util/generic/bitmap.h
+++ b/util/generic/bitmap.h
@@ -170,7 +170,7 @@ namespace NBitMapPrivate {
template <typename TOtherChunk>
TFixedStorage(const TOtherChunk* data, size_t size) {
- Y_VERIFY(Size * sizeof(TChunk) >= size * sizeof(TOtherChunk), "Exceeding bitmap storage capacity");
+ Y_ABORT_UNLESS(Size * sizeof(TChunk) >= size * sizeof(TOtherChunk), "Exceeding bitmap storage capacity");
CopyData(Data, Size, data, size);
}
@@ -616,7 +616,7 @@ public:
}
Y_FORCE_INLINE void Reserve(size_t bitCount) {
- Y_VERIFY(Mask.ExpandBitSize(bitCount), "Exceeding bitmap storage capacity");
+ Y_ABORT_UNLESS(Mask.ExpandBitSize(bitCount), "Exceeding bitmap storage capacity");
}
Y_FORCE_INLINE size_t ValueBitCount() const {
@@ -967,7 +967,7 @@ public:
void Load(IInputStream* inp) {
ui8 chunkSize = 0;
::Load(inp, chunkSize);
- Y_VERIFY(size_t(chunkSize) == sizeof(TChunk), "Chunk size is not the same");
+ Y_ABORT_UNLESS(size_t(chunkSize) == sizeof(TChunk), "Chunk size is not the same");
ui64 bitCount64 = 0;
::Load(inp, bitCount64);