Skip to content

Commit ec41567

Browse files
committed
fix
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
1 parent ec2f6d7 commit ec41567

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

  • encodings/fastlanes/src/bitpacking/vtable

encodings/fastlanes/src/bitpacking/vtable/mod.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,16 @@ impl VTable for BitPacked {
166166
.patches
167167
.as_ref()
168168
.vortex_expect("BitPackedArray had patch slots but no patches metadata");
169-
Some(Patches::new(
170-
array.len,
171-
old.offset(),
172-
indices.clone(),
173-
values.clone(),
174-
slots[PATCH_CHUNK_OFFSETS_SLOT].clone(),
175-
)?)
169+
Some(unsafe {
170+
Patches::new_unchecked(
171+
array.len,
172+
old.offset(),
173+
indices.clone(),
174+
values.clone(),
175+
slots[PATCH_CHUNK_OFFSETS_SLOT].clone(),
176+
None,
177+
)
178+
})
176179
}
177180
_ => None,
178181
};

0 commit comments

Comments
 (0)