aboutsummaryrefslogtreecommitdiffstats
path: root/regexec.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-24 02:10:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-24 02:10:09 +0000
commit6291efbac50ab50fdbb28bd152032baf0f30e55d (patch)
tree3bd6ffebb88532afb6af0f7a339de3dc0f6a18d5 /regexec.c
parentd657685c1ebd00a75eaf37bc4d4379eeda572c6b (diff)
downloadruby-6291efbac50ab50fdbb28bd152032baf0f30e55d.tar.gz
regexec.c: constify
* regexec.c (match_at): constify oplabels. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54741 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 0c379aa678..f52e55f879 100644
--- a/regexec.c
+++ b/regexec.c
@@ -1372,7 +1372,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
#define NEXT sprev = sbegin; JUMP
#define JUMP goto *oplabels[*p++]
- static void *oplabels[] = {
+ static const void *oplabels[] = {
&&L_OP_FINISH, /* matching process terminator (no more alternative) */
&&L_OP_END, /* pattern code terminator (success end) */