mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* insns.def (checkmatch): suppress warnings. [ruby-core:47339]
[Bug #6930] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4358271106
commit
43b8ae4631
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Aug 28 22:31:49 2012 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
|
||||
|
||||
* insns.def (checkmatch): suppress warnings. [ruby-core:47339]
|
||||
[Bug #6930]
|
||||
|
||||
Tue Aug 28 20:03:54 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* configure.in: Fixing Haiku R1/alpha3 build with gcc-4.4.4.
|
||||
|
|
|
@ -833,6 +833,8 @@ checkmatch
|
|||
(VALUE target, VALUE pattern)
|
||||
(VALUE result)
|
||||
{
|
||||
enum vm_check_match_type checkmatch_type =
|
||||
(enum vm_check_match_type)(flag & VM_CHECKMATCH_TYPE_MASK);
|
||||
result = Qfalse;
|
||||
|
||||
if (flag & VM_CHECKMATCH_ARRAY) {
|
||||
|
@ -847,7 +849,7 @@ checkmatch
|
|||
}
|
||||
}
|
||||
else {
|
||||
if (RTEST(check_match(pattern, target, flag & VM_CHECKMATCH_TYPE_MASK))) {
|
||||
if (RTEST(check_match(pattern, target, checkmatch_type))) {
|
||||
result = Qtrue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue