diff --git a/tests/exhaustive32_midpoint.cpp b/tests/exhaustive32_midpoint.cpp index 377d456..f473577 100644 --- a/tests/exhaustive32_midpoint.cpp +++ b/tests/exhaustive32_midpoint.cpp @@ -32,7 +32,7 @@ template char *to_string(T d, char *buffer) { void strtod_from_string(const char * st, float& d) { char *pr = (char *)st; #if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) - d = cygwin_strtod_l(st, &pr, c_locale); + d = cygwin_strtod_l(st, &pr); #elif defined(_WIN32) static _locale_t c_locale = _create_locale(LC_ALL, "C"); d = _strtof_l(st, &pr, c_locale); diff --git a/tests/random_string.cpp b/tests/random_string.cpp index 88a8673..f5a8d51 100644 --- a/tests/random_string.cpp +++ b/tests/random_string.cpp @@ -123,7 +123,7 @@ std::pair strtof_from_string(char *st) { float d; char *pr; #if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) - d = cygwin_strtod_l(st, &pr, c_locale); + d = cygwin_strtod_l(st, &pr); #elif defined(_WIN32) static _locale_t c_locale = _create_locale(LC_ALL, "C"); d = _strtof_l(st, &pr, c_locale); diff --git a/tests/string_test.cpp b/tests/string_test.cpp index 3686def..22e16fe 100644 --- a/tests/string_test.cpp +++ b/tests/string_test.cpp @@ -86,7 +86,7 @@ template <> void strtod_from_string(const std::string &st, float& d) { char *pr = (char *)st.data(); #if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) - d = cygwin_strtod_l(st, &pr, c_locale); + d = cygwin_strtod_l(st, &pr); #elif defined(_WIN32) static _locale_t c_locale = _create_locale(LC_ALL, "C"); d = _strtof_l(st.data(), &pr, c_locale);