summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorJerome Duval <jerome.duval@gmail.com>2019-04-25 23:19:43 +0200
committerKarl Williamson <khw@cpan.org>2019-05-24 17:09:29 -0600
commit72299e00ea670f308805c0327b3a5d0cfc2d4a62 (patch)
treec8f40848db496609220abe78e3bc4151b9c488b5 /locale.c
parent79780975167f37019a43a656947fc7f7d167d29f (diff)
downloadperl-72299e00ea670f308805c0327b3a5d0cfc2d4a62.tar.gz
locale.c: remove unnecessary cast
This was failing in gcc 2.95. The original commit added a cast, but we figured out that removing this other one that really served no purpose causes this compiler to work.
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/locale.c b/locale.c
index 87e11d609d..50f33776cb 100644
--- a/locale.c
+++ b/locale.c
@@ -5052,9 +5052,7 @@ Perl__is_cur_LC_category_utf8(pTHX_ int category)
Copy(delimited, utf8ness_cache, input_name_len_with_overhead - 1, char);
utf8ness_cache[input_name_len_with_overhead - 1] = is_utf8 + '0';
- if ((PL_locale_utf8ness[strlen(PL_locale_utf8ness)-1]
- & (PERL_UINTMAX_T) ~1) != '0')
- {
+ if ((PL_locale_utf8ness[strlen(PL_locale_utf8ness)-1] & ~1) != '0') {
Perl_croak(aTHX_
"panic: %s: %d: Corrupt utf8ness_cache=%s\nlen=%zu,"
" inserted_name=%s, its_len=%zu\n",