mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
cc0ffc5517
commit
84f4550341
1 changed files with 1 additions and 1 deletions
|
@ -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) */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue