Skip to content

Commit 6e07982

Browse files
committed
Fix UB in test
1 parent 5805c7a commit 6e07982

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/core_simd/tests/ops_impl/float_macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ macro_rules! float_tests {
388388
0.0,
389389
-1.0,
390390
1.0,
391-
<$scalar>::MIN,
392-
-<$scalar>::MIN,
391+
<$int_scalar>::MAX as $scalar,
392+
<$int_scalar>::MIN as $scalar,
393393
<$scalar>::MIN_POSITIVE,
394394
-<$scalar>::MIN_POSITIVE,
395395
<$scalar>::EPSILON,

0 commit comments

Comments
 (0)