summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-11-14 08:33:31 -0700
committerKarl Williamson <khw@cpan.org>2019-11-14 18:22:50 -0700
commitae9a9edb65d4dd18b6ba99b2639e1906b9f81514 (patch)
tree22af91afb9f593cd39809f8b8051fe17a74fe046 /utf8.h
parent23fa16fc946b511fade5e4e0dd9811beff351d73 (diff)
downloadperl-ae9a9edb65d4dd18b6ba99b2639e1906b9f81514.tar.gz
utf8.h: Use MAX() macro instead of its expansion
It makes things a little clearer.
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/utf8.h b/utf8.h
index f9b3222cff..e449d72f64 100644
--- a/utf8.h
+++ b/utf8.h
@@ -430,9 +430,7 @@ uppercase/lowercase/titlecase/fold into.
=cut
*/
#define UTF8_MAXBYTES_CASE \
- (UTF8_MAXBYTES >= (UTF8_MAX_FOLD_CHAR_EXPAND * OFFUNISKIP(0x10FFFF)) \
- ? UTF8_MAXBYTES \
- : (UTF8_MAX_FOLD_CHAR_EXPAND * OFFUNISKIP(0x10FFFF)))
+ MAX(UTF8_MAXBYTES, UTF8_MAX_FOLD_CHAR_EXPAND * OFFUNISKIP(0x10FFFF))
/* Rest of these are attributes of Unicode and perl's internals rather than the
* encoding, or happen to be the same in both ASCII and EBCDIC (at least at