Skip to content

Fix Bitmask::fill panicking on an UnsafeMut window - #196

Merged
pbower merged 2 commits into
mainfrom
TSK480-bitmask-fill
Sep 9, 2026
Merged

Fix Bitmask::fill panicking on an UnsafeMut window#196
pbower merged 2 commits into
mainfrom
TSK480-bitmask-fill

Conversation

@pbower

@pbower pbower commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

fill iterated the backing Buffer<u8> via IntoIterator for &mut Buffer<u8>,
which re-owns the buffer through make_owned_mut and panics for an
UnsafeMut window. SIMD arithmetic kernels call fill on an output null
mask that the orchestrator supplies as an UnsafeMut window, so any
element-wise arithmetic on a nullable column aborted the process.
Write through as_mut_slice instead, which already handles UnsafeMut by
returning the borrowed window in place.
The $v:expr arm matched &[200] before the &[$($x:expr),+] arm could,
routing through .into() which fails when Vec64 lacks From<&[T; N]>.
Moving the specific arms first matches the pattern used by arr_f64
and the other array macros.
@pbower
pbower merged commit c39f74b into main Sep 9, 2026
17 checks passed
@pbower
pbower deleted the TSK480-bitmask-fill branch September 9, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant