1
0
Fork 0
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:
nobu 2016-05-18 11:32:26 +00:00
parent f09574c879
commit d23bd5803e

3
re.c
View file

@ -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;