From e647b0a55be2292fdccbe25da294e437cdd479d2 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Tue, 16 Feb 2021 05:54:14 -0700 Subject: [PATCH] locale.c: Rmv redundant cBOOL() strEQ and && already return booleans --- locale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale.c b/locale.c index f188d71a9f5a..52c7f1608472 100644 --- a/locale.c +++ b/locale.c @@ -1611,7 +1611,7 @@ S_new_numeric(pTHX_ const char *newnum) * THOUSEP can currently (but rarely) cause a race, so avoid doing that, * and just always change the locale if not C nor POSIX on those systems */ if (! PL_numeric_standard) { - PL_numeric_standard = cBOOL(strEQ(C_decimal_point, my_langinfo(RADIXCHAR, + PL_numeric_standard = ( strEQ(C_decimal_point, my_langinfo(RADIXCHAR, FALSE /* Don't toggle locale */ )) && strEQ(C_thousands_sep, my_langinfo(THOUSEP, FALSE))); }