Issue #4587 has been reported by Nikolai Weibull.

----------------------------------------
Bug #4587: RMATCH_REGS definition is wrong
http://redmine.ruby-lang.org/issues/4587

Author: Nikolai Weibull
Status: Open
Priority: Normal
Assignee: 
Category: core
Target version: Ruby 1.8.7
ruby -v: ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]


RMATCH_REGS is currently defined as

 #define RMATCH_REGS(obj)  (R_CAST(RMatch)(obj)->regs)

It should be

 #define RMATCH_REGS(obj)  ((R_CAST(RMatch)(obj))->regs)


-- 
http://redmine.ruby-lang.org