From d2a5354255bab4d74c710ee8ff21f43998f33095 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 15 Sep 2014 16:18:41 +0000 Subject: * reg*.c: Merge Onigmo 5.15.0 38a870960aa7370051a3544 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enc/euc_jp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'enc/euc_jp.c') diff --git a/enc/euc_jp.c b/enc/euc_jp.c index 8ee24bffdb..61bb8ba65a 100644 --- a/enc/euc_jp.c +++ b/enc/euc_jp.c @@ -293,7 +293,7 @@ apply_all_case_fold(OnigCaseFoldType flag, OnigApplyAllCaseFoldFunc f, void* arg, OnigEncoding enc) { return onigenc_apply_all_case_fold_with_map( - sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0, + numberof(CaseFoldMap), CaseFoldMap, 0, flag, f, arg); } @@ -504,13 +504,14 @@ static int property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end) { UChar *s = p, *e = end; - const struct enc_property *prop = onig_jis_property((const char *)s, (unsigned int)(e-s)); + const struct enc_property *prop = + onig_jis_property((const char* )s, (unsigned int )(e - s)); if (!prop) { return onigenc_minimum_property_name_to_ctype(enc, s, e); } - return (int)prop->ctype; + return (int )prop->ctype; } static int -- cgit v1.2.3