* re.h (RMATCH_REGS): parenthesize cast expression. suggested

from Nikolai Weibull in [ruby-core:35825].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2011-04-20 12:42:40 +00:00
parent fc7687db57
commit f76984575e
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Apr 20 21:40:36 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
* re.h (RMATCH_REGS): parenthesize cast expression. suggested
from Nikolai Weibull in [ruby-core:35825].
Mon Apr 18 10:04:41 2011 NAKAMURA Usaku <usa@ruby-lang.org>
backported r31286 from trunk

2
re.h
View file

@ -27,7 +27,7 @@ struct RMatch {
};
#define RMATCH(obj) (R_CAST(RMatch)(obj))
#define RMATCH_REGS(obj) (R_CAST(RMatch)(obj)->regs)
#define RMATCH_REGS(obj) (R_MATCH(obj)->regs)
VALUE rb_reg_regcomp _((VALUE));
long rb_reg_search _((VALUE, VALUE, long, long));