From fcc544e0418ea50ea3560de8afdc1794c326257f Mon Sep 17 00:00:00 2001 From: AZero13 Date: Mon, 17 Nov 2025 14:08:38 -0500 Subject: [PATCH] Fix copy-paste error in string_shim.c result is a float, not a double, so define it as float. --- Sources/_FoundationCShims/string_shims.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/_FoundationCShims/string_shims.c b/Sources/_FoundationCShims/string_shims.c index 877c325be..0b933f527 100644 --- a/Sources/_FoundationCShims/string_shims.c +++ b/Sources/_FoundationCShims/string_shims.c @@ -91,7 +91,7 @@ float _stringshims_strtof_clocale(const char * _Nullable restrict nptr, #else // Use the C locale locale_t oldLocale = uselocale(FOUNDATION_C_LOCALE); - double result = strtof(nptr, endptr); + float result = strtof(nptr, endptr); // Restore locale uselocale(oldLocale); return result;