summaryrefslogtreecommitdiff
path: root/enc/utf_32le.c
diff options
context:
space:
mode:
Diffstat (limited to 'enc/utf_32le.c')
-rw-r--r--enc/utf_32le.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/enc/utf_32le.c b/enc/utf_32le.c
index 3a0a41b..2754d33 100644
--- a/enc/utf_32le.c
+++ b/enc/utf_32le.c
@@ -61,8 +61,11 @@ utf32le_is_mbc_newline(const UChar* p, const UChar* end,
static OnigCodePoint
utf32le_mbc_to_code(const UChar* p, const UChar* end ARG_UNUSED,
+ int *precise_ret,
OnigEncoding enc ARG_UNUSED)
{
+ if (precise_ret)
+ *precise_ret = ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(4);
return (OnigCodePoint )(((p[3] * 256 + p[2]) * 256 + p[1]) * 256 + p[0]);
}