summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-01 22:06:11 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-01 22:06:11 (GMT)
commit046831094b355d8d293d22a3ad5be5332307c96c (patch)
tree2a5edfdc8cc5963b6767d82ba8e3939a84865620 /regexec.c
parentb16245145bd386b5d4cf4e25e9917718a10347cd (diff)
constify rb_encoding and OnigEncoding
* include/ruby/encoding.h: constify `rb_encoding` arguments. * include/ruby/oniguruma.h: constify `OnigEncoding` arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index 9978496..56cccfb 100644
--- a/regexec.c
+++ b/regexec.c
@@ -4336,7 +4336,7 @@ onig_number_of_capture_histories(regex_t* reg)
}
extern void
-onig_copy_encoding(OnigEncoding to, OnigEncoding from)
+onig_copy_encoding(OnigEncodingType *to, OnigEncoding from)
{
*to = *from;
}