summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/pcre/pcre16_ord2utf16.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/pcre/pcre16_ord2utf16.c')
-rw-r--r--src/3rdparty/pcre/pcre16_ord2utf16.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/3rdparty/pcre/pcre16_ord2utf16.c b/src/3rdparty/pcre/pcre16_ord2utf16.c
index 9f7db8661f..be91cb4477 100644
--- a/src/3rdparty/pcre/pcre16_ord2utf16.c
+++ b/src/3rdparty/pcre/pcre16_ord2utf16.c
@@ -64,16 +64,11 @@ Arguments:
Returns: number of characters placed in the buffer
*/
-int
+unsigned int
PRIV(ord2utf)(pcre_uint32 cvalue, pcre_uchar *buffer)
{
#ifdef SUPPORT_UTF
-/* Checking invalid cvalue character, encoded as invalid UTF-16 character.
-Should never happen in practice. */
-if ((cvalue & 0xf800) == 0xd800 || cvalue >= 0x110000)
- cvalue = 0xfffe;
-
if (cvalue <= 0xffff)
{
*buffer = (pcre_uchar)cvalue;