aboutsummaryrefslogtreecommitdiffstats
path: root/insns.def
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-28 03:48:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-28 03:48:34 +0000
commitd4f3a43d0a0501f880c377fb3abf16d121d0fa3f (patch)
treeda2e88f085f076e279039280026b469bd77e52f8 /insns.def
parentdef5357db100c62f16204b4dc90d5d58b476d153 (diff)
downloadruby-d4f3a43d0a0501f880c377fb3abf16d121d0fa3f.tar.gz
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
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def2
1 files changed, 1 insertions, 1 deletions
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;