From 43b8ae46314a3154768b615f2b7d2538e293b1bc Mon Sep 17 00:00:00 2001
From: nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Tue, 28 Aug 2012 14:05:52 +0000
Subject: * 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
---
 insns.def | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'insns.def')

diff --git a/insns.def b/insns.def
index 797e5ec6f5..04ecd8d8c8 100644
--- a/insns.def
+++ b/insns.def
@@ -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;
 	}
     }
-- 
cgit v1.2.3

