summaryrefslogtreecommitdiff
path: root/enc/utf_32be.c
diff options
context:
space:
mode:
Diffstat (limited to 'enc/utf_32be.c')
-rw-r--r--enc/utf_32be.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/enc/utf_32be.c b/enc/utf_32be.c
index 61e7d0f..7bdf9aa 100644
--- a/enc/utf_32be.c
+++ b/enc/utf_32be.c
@@ -61,8 +61,11 @@ utf32be_is_mbc_newline(const UChar* p, const UChar* end,
static OnigCodePoint
utf32be_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[0] * 256 + p[1]) * 256 + p[2]) * 256 + p[3]);
}