* re.c (rb_reg_search): fix: 4th argument should be regexp

object. patched by shintaro kuwamoto [ruby-dev:41667] #3459

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-08-23 03:32:58 +00:00
parent 815ab02971
commit d078f51f57
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Mon Aug 23 12:28:58 2010 NARUSE, Yui <naruse@ruby-lang.org>
* re.c (rb_reg_search): fix: 4th argument should be regexp
object. patched by shintaro kuwamoto [ruby-dev:41667] #3459
Mon Aug 23 02:23:05 2010 NARUSE, Yui <naruse@ruby-lang.org>
* util.c (ruby_strtod): make sure to have digit-sequence after 'p'

2
re.c
View File

@ -1395,7 +1395,7 @@ rb_reg_search(VALUE re, VALUE str, long pos, int reverse)
else {
onig_errmsg_buffer err = "";
onig_error_code_to_str((UChar*)err, (int)result);
rb_reg_raise(RREGEXP_SRC_PTR(re), RREGEXP_SRC_LEN(re), err, 0);
rb_reg_raise(RREGEXP_SRC_PTR(re), RREGEXP_SRC_LEN(re), err, re);
}
}