From 6b1c6e0e55707c78f7dba05e3f005269aa78fa3f Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 11 Feb 2017 15:08:33 +0000 Subject: Merge Onigmo 6.1.1 * Support absent operator https://github.com/k-takata/Onigmo/issues/82 * https://github.com/k-takata/Onigmo/blob/Onigmo-6.1.1/HISTORY git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- regenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regenc.c') diff --git a/regenc.c b/regenc.c index ca09a7fcb3..16d62fdf40 100644 --- a/regenc.c +++ b/regenc.c @@ -54,11 +54,11 @@ onigenc_set_default_encoding(OnigEncoding enc) extern int onigenc_mbclen_approximate(const OnigUChar* p,const OnigUChar* e, OnigEncoding enc) { - int ret = ONIGENC_PRECISE_MBC_ENC_LEN(enc,p,e); + int ret = ONIGENC_PRECISE_MBC_ENC_LEN(enc, p, e); if (ONIGENC_MBCLEN_CHARFOUND_P(ret)) return ONIGENC_MBCLEN_CHARFOUND_LEN(ret); else if (ONIGENC_MBCLEN_NEEDMORE_P(ret)) - return (int)(e-p)+ONIGENC_MBCLEN_NEEDMORE_LEN(ret); + return (int )(e - p) + ONIGENC_MBCLEN_NEEDMORE_LEN(ret); return 1; } -- cgit v1.2.1