diff options
Diffstat (limited to 'enc')
-rw-r--r-- | enc/utf_16le.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enc/utf_16le.c b/enc/utf_16le.c index 0dec8f98c5..e972cb95f0 100644 --- a/enc/utf_16le.c +++ b/enc/utf_16le.c @@ -56,7 +56,7 @@ static int utf16le_mbc_enc_len(const UChar* p, const OnigUChar* e, OnigEncoding enc ARG_UNUSED) { - ptrdiff_t len = e - p; + int len = (int)(e - p); UChar byte; if (len < 2) return ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(1); |