From d23bd5803e9c3bfd0a43eec5f2d50efc82313453 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 18 May 2016 11:32:26 +0000 Subject: [PATCH] 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 --- re.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;