summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-08-01 21:08:32 -0600
committerKarl Williamson <khw@cpan.org>2021-08-07 05:14:43 -0600
commit03dc0b1b4f089b6205935b158692b9364ae3453b (patch)
tree75611798761f261682ab8109172da163d77cdf72 /utf8.h
parent306c807eed39712f56d51280456481910ee36b3a (diff)
downloadperl-03dc0b1b4f089b6205935b158692b9364ae3453b.tar.gz
UTF8_IS_DOWNGRADEABLE_START: Call less general helper
Future commits would otherwise make the expansion of this macro too complicated for some C compilers. Use a less general internal helper function to avoid that.
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.h b/utf8.h
index 1bfc658927..e0cc161ced 100644
--- a/utf8.h
+++ b/utf8.h
@@ -397,7 +397,7 @@ encoded as UTF-8. C<cp> is a native (ASCII or EBCDIC) code point if less than
* UTF8_IS_NEXT_CHAR_DOWNGRADEABLE() instead if the input isn't known to
* be well-formed. */
#define UTF8_IS_DOWNGRADEABLE_START(c) (__ASSERT_(FITS_IN_8_BITS(c)) \
- inRANGE(NATIVE_UTF8_TO_I8(c), \
+ inRANGE_helper_(U8, NATIVE_UTF8_TO_I8(c), \
UTF_MIN_START_BYTE, UTF_MIN_ABOVE_LATIN1_BYTE - 1))
/* The largest code point representable by two UTF-8 bytes on this platform.