Skip to content

Commit 860cc64

Browse files
committed
cast in scalar_at
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
1 parent 35bfb5f commit 860cc64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vortex-array/src/arrays/patched/vtable/operations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl OperationsVTable<Patched> for Patched {
2828
// be slower.
2929
for (index, patch_index) in accessor.offsets_iter(chunk, lane) {
3030
if patch_index == chunk_index {
31-
return array.values.scalar_at(index);
31+
return array.values.scalar_at(index)?.cast(array.dtype());
3232
}
3333
}
3434

0 commit comments

Comments
 (0)