From 8b9ad9d6f021cb5a7ebfba60dd258521955a202a Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 27 Aug 2015 19:49:45 +0000 Subject: oniguruma.h: constify * include/ruby/oniguruma.h (OnigEncodingTypeST): constify property_name_to_ctype arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enc/shift_jis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'enc/shift_jis.c') diff --git a/enc/shift_jis.c b/enc/shift_jis.c index cbd3f02051..165592c905 100644 --- a/enc/shift_jis.c +++ b/enc/shift_jis.c @@ -490,9 +490,9 @@ static const OnigCodePoint CR_Cyrillic[] = { #include "enc/jis/props.h" static int -property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end) +property_name_to_ctype(OnigEncoding enc, const UChar* p, const UChar* end) { - UChar *s = p, *e = end; + const UChar *s = p, *e = end; const struct enc_property *prop = onig_jis_property((const char* )s, (unsigned int )(e - s)); -- cgit v1.2.3