From 84f4550341264fb202c2d419936246347857d5e5 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 24 Apr 2016 02:10:09 +0000 Subject: 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 --- regexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regexec.c') 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) */ -- cgit v1.2.3