ruby-changes:42988
From: nobu <ko1@a...>
Date: Wed, 18 May 2016 20:32:32 +0900 (JST)
Subject: [ruby-changes:42988] nobu:r55062 (trunk): re.c: fix type
nobu 2016-05-18 20:32:26 +0900 (Wed, 18 May 2016) New Revision: 55062 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55062 Log: re.c: fix type * re.c (rb_reg_match_m_p): fix type of variable for onig_search result. Modified files: trunk/re.c Index: re.c =================================================================== --- re.c (revision 55061) +++ re.c (revision 55062) @@ -3225,7 +3225,8 @@ rb_reg_match_m_p(int argc, VALUE *argv, https://github.com/ruby/ruby/blob/trunk/re.c#L3225 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/