diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-28 03:48:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-28 03:48:34 +0000 |
commit | bd2fd73196bbff7dc5349c624342e212c09d174e (patch) | |
tree | da2e88f085f076e279039280026b469bd77e52f8 /insns.def | |
parent | 8e7e71d63e6ae48b39d56f619db6cb08764b3d71 (diff) | |
download | bundler-bd2fd73196bbff7dc5349c624342e212c09d174e.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.def | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |