diff --git a/enc/utf_8.c b/enc/utf_8.c index 3b9387c613..f9a97c72dd 100644 --- a/enc/utf_8.c +++ b/enc/utf_8.c @@ -363,7 +363,7 @@ code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc ARG_UNUSED) } *p++ = UTF8_TRAIL0(code); - return p - buf; + return (int)(p - buf); } }