From 03dc0b1b4f089b6205935b158692b9364ae3453b Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 1 Aug 2021 21:08:32 -0600 Subject: 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. --- utf8.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utf8.h') 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 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. -- cgit v1.2.1