From 6b43a96d0902060876d9564b51ca4d4e643aa51b Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sat, 4 May 2024 20:29:40 -0500 Subject: [PATCH] fixup! Work around i586 wcstod test failure --- src/wutil/wcstod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wutil/wcstod.rs b/src/wutil/wcstod.rs index d50394e41..42f51e675 100644 --- a/src/wutil/wcstod.rs +++ b/src/wutil/wcstod.rs @@ -573,7 +573,7 @@ fn test_sep(input: &str, val: Result, decimalsep: char) { let mut consumed = 0; let result = wcstod(input, decimalsep, &mut consumed); // There are fundamental issues with f64 accuracy under x87. See #10474 and https://github.com/rust-lang/rust/issues/114479 - if cfg!(all(target_arch = "x86", not(target_feature = "sse2"))) { + if cfg!(any(not(target_arch = "x86"), target_feature = "sse2")) { assert_eq!(result, val); } else { // Make sure the result is at least somewhat sane. We might need to change f64::EPSILON