Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
62: Bug fix for serialization bug r=Nemo157 a=lemire

See RoaringBitmap#61

Co-authored-by: Kerollmops <clement@meilisearch.com>
Co-authored-by: Daniel Lemire <lemire@gmail.com>
  • Loading branch information
3 people authored Sep 10, 2020
2 parents 5c09e13 + 809bf15 commit 0b24214
Show file tree
Hide file tree
Showing 2 changed files with 420 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitmap/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl RoaringBitmap {
let key = description_bytes.read_u16::<LittleEndian>()?;
let len = u64::from(description_bytes.read_u16::<LittleEndian>()?) + 1;

let store = if len < 4096 {
let store = if len <= 4096 {
let mut values = Vec::with_capacity(len as usize);
for _ in 0..len {
values.push(reader.read_u16::<LittleEndian>()?);
Expand Down
Loading

0 comments on commit 0b24214

Please sign in to comment.