Skip to content

Commit

Permalink
locale.c: Rmv redundant cBOOL()
Browse files Browse the repository at this point in the history
strEQ and && already return booleans
  • Loading branch information
khwilliamson committed May 9, 2021
1 parent b70d7b7 commit bdd936f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locale.c
Expand Up @@ -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)));
}
Expand Down

0 comments on commit bdd936f

Please sign in to comment.