From bd2fd73196bbff7dc5349c624342e212c09d174e Mon Sep 17 00:00:00 2001
From: nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Mon, 28 Nov 2016 03:48:34 +0000
Subject: insns.def: adjust index type

* insns.def (checkmatch): adjust type of the index variable, to
  get rid of (potential) overflow.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
---
 insns.def | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'insns.def')

diff --git a/insns.def b/insns.def
index fdda7d25de..b64a168b7a 100644
--- a/insns.def
+++ b/insns.def
@@ -758,7 +758,7 @@ checkmatch
     result = Qfalse;
 
     if (flag & VM_CHECKMATCH_ARRAY) {
-	int i;
+	long i;
 	for (i = 0; i < RARRAY_LEN(pattern); i++) {
 	    if (RTEST(check_match(RARRAY_AREF(pattern, i), target, checkmatch_type))) {
 		result = Qtrue;
-- 
cgit v1.2.3

