diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-18 11:32:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-18 11:32:26 +0000 |
commit | d23bd5803e9c3bfd0a43eec5f2d50efc82313453 (patch) | |
tree | f3b9d84956a3a340fe2becfb058adb568171fada /re.c | |
parent | f09574c879fe9a4488164a41b453617b4b1d56bb (diff) | |
download | ruby-d23bd5803e9c3bfd0a43eec5f2d50efc82313453.tar.gz |
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
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |