This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix typo when using nBIT_UMAX
authorNicolas R <atoomic@cpan.org>
Wed, 22 Jul 2020 23:46:03 +0000 (17:46 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 23 Jul 2020 00:11:14 +0000 (18:11 -0600)
nBIT_MAX was used instead of nBIT_UMAX
from d223e1ea9ae864c0e563187f1e76 changes

note: at first glance it seems that
nBIT_UMAX is an alias for nBIT_MASK

utf8.h

diff --git a/utf8.h b/utf8.h
index fc27df5..f530172 100644 (file)
--- a/utf8.h
+++ b/utf8.h
@@ -419,7 +419,7 @@ encoded as UTF-8.  C<cp> is a native (ASCII or EBCDIC) code point if less than
 /* The largest code point representable by two UTF-8 bytes on any platform that
  * Perl runs on.  This value is constrained by EBCDIC which has 5 bits per
  * continuation byte */
-#define MAX_PORTABLE_UTF8_TWO_BYTE (32 * nBIT_MAX(5))
+#define MAX_PORTABLE_UTF8_TWO_BYTE (32 * nBIT_UMAX(5))
 
 /*