Skip to content

Commit c9f4e0e

Browse files
committed
Use Mask::cast in From impl
1 parent aa11959 commit c9f4e0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core_simd/src/masks.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ macro_rules! impl_from {
578578
LaneCount<LANES>: SupportedLaneCount,
579579
{
580580
fn from(value: Mask<$from, LANES>) -> Self {
581-
Self(value.0.convert())
581+
value.cast()
582582
}
583583
}
584584
)*

0 commit comments

Comments
 (0)