diff --git a/simd/src/arm/mod.rs b/simd/src/arm/mod.rs index f9db6674..3fa5c7da 100644 --- a/simd/src/arm/mod.rs +++ b/simd/src/arm/mod.rs @@ -559,12 +559,12 @@ impl I32x4 { #[inline] pub fn max(self, other: I32x4) -> I32x4 { - unsafe { I32x4(simd_fmax(self.0, other.0)) } + unsafe { I32x4(simd_cast(simd_fmax(self.to_f32x4().0, other.to_f32x4().0))) } } #[inline] pub fn min(self, other: I32x4) -> I32x4 { - unsafe { I32x4(simd_fmin(self.0, other.0)) } + unsafe { I32x4(simd_cast(simd_fmin(self.to_f32x4().0, other.to_f32x4().0))) } } // Packed comparisons