fix as proposed

This commit is contained in:
UnamedRus 2023-09-29 14:28:43 +00:00
parent 34cc5ec23f
commit 1f17961703

View File

@ -151,7 +151,7 @@ public:
}
else if (BitmapKind::Bitmap == kind)
{
std::shared_ptr<RoaringBitmap> bitmap = std::make_shared<RoaringBitmap>(*roaring_bitmap);
std::unique_ptr<RoaringBitmap> bitmap = std::make_unique<RoaringBitmap>(*roaring_bitmap);
bitmap->runOptimize();
auto size = bitmap->getSizeInBytes();
writeVarUInt(size, out);