mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
re.c: fix type
* re.c (rb_reg_match_m_p): fix type of variable for onig_search result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f09574c879
commit
d23bd5803e
1 changed files with 2 additions and 1 deletions
3
re.c
3
re.c
|
@ -3225,7 +3225,8 @@ rb_reg_match_m_p(int argc, VALUE *argv, VALUE re)
|
|||
long pos = 0;
|
||||
regex_t *reg;
|
||||
onig_errmsg_buffer err = "";
|
||||
int result, tmpreg;
|
||||
OnigPosition result;
|
||||
int tmpreg;
|
||||
|
||||
rb_scan_args(argc, argv, "11", &str, &initpos);
|
||||
if (NIL_P(str)) return Qnil;
|
||||
|
|
Loading…
Reference in a new issue