summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-18 11:32:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-18 11:32:26 +0000
commitd23bd5803e9c3bfd0a43eec5f2d50efc82313453 (patch)
treef3b9d84956a3a340fe2becfb058adb568171fada
parentf09574c879fe9a4488164a41b453617b4b1d56bb (diff)
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
-rw-r--r--re.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/re.c b/re.c
index aa92c0dc29..7dfd978b66 100644
--- a/re.c
+++ b/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;