* 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
@ -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>
|
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.
|
* configure.in: Fixing Haiku R1/alpha3 build with gcc-4.4.4.
|
||||||
|
@ -833,6 +833,8 @@ checkmatch
|
|||||||
(VALUE target, VALUE pattern)
|
(VALUE target, VALUE pattern)
|
||||||
(VALUE result)
|
(VALUE result)
|
||||||
{
|
{
|
||||||
|
enum vm_check_match_type checkmatch_type =
|
||||||
|
(enum vm_check_match_type)(flag & VM_CHECKMATCH_TYPE_MASK);
|
||||||
result = Qfalse;
|
result = Qfalse;
|
||||||
|
|
||||||
if (flag & VM_CHECKMATCH_ARRAY) {
|
if (flag & VM_CHECKMATCH_ARRAY) {
|
||||||
@ -847,7 +849,7 @@ checkmatch
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (RTEST(check_match(pattern, target, flag & VM_CHECKMATCH_TYPE_MASK))) {
|
if (RTEST(check_match(pattern, target, checkmatch_type))) {
|
||||||
result = Qtrue;
|
result = Qtrue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user