about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/tests/simd.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/tests/simd.rs b/library/core/tests/simd.rs
index 50c92968c9d..b84f3228e78 100644
--- a/library/core/tests/simd.rs
+++ b/library/core/tests/simd.rs
@@ -7,7 +7,7 @@ fn testing() {
     let x = f32x4::from_array([1.0, 1.0, 1.0, 1.0]);
     let y = -x;
 
-    let h = x * 0.5;
+    let h = x * f32x4::splat(0.5);
 
     let r = y.abs();
     assert_eq!(x, r);