From 04c623fe8b50d0c0d78e810ef1cefe10fc418a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 1 Dec 2022 12:12:56 +0200 Subject: [PATCH] crt-test: Improve the check for testing the >64 bit range for strtold The previous condition failed to identify that macOS on aarch64 also has long double equal to regular double. --- test/crt-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/crt-test.c b/test/crt-test.c index 465ca5e..f42211b 100644 --- a/test/crt-test.c +++ b/test/crt-test.c @@ -516,7 +516,7 @@ int main(int argc, char* argv[]) { TEST_STRTOD_64B_RANGE(strtod, ); TEST_STRTOD_64B_RANGE(wcstod, L); -#if !defined(_WIN32) || (defined(__MINGW32__) && (defined(__i386__) || defined(__x86_64__))) +#if !defined(_MSC_VER) && (__SIZEOF_LONG_DOUBLE__ > __SIZEOF_DOUBLE__) #define TEST_STRTOLD_80B_RANGE(strtold, prefix) \ TEST_STRTOD_VALUE(strtold, prefix, 1.e310, 1e310L); \ TEST_STRTOD_VALUE(strtold, prefix, -1.e310, -1e310L); \