diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-04 07:18:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-04 07:18:01 +0000 |
commit | 6b1c4e9f98a3041de843a176bb946ecf500453da (patch) | |
tree | 664a5b8fb85a73fa2083e49bf8c4982e93586969 /ext/gdbm/gdbm.c | |
parent | 25c5704436b345f4ad7b81385f2faf6ffd3dd5f8 (diff) | |
download | ruby-6b1c4e9f98a3041de843a176bb946ecf500453da.tar.gz |
ext: adjust index type
* ext: use long for index instead of int and RARRAY_LENINT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/gdbm/gdbm.c')
-rw-r--r-- | ext/gdbm/gdbm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/gdbm/gdbm.c b/ext/gdbm/gdbm.c index eb802a7563..143b4e8ebb 100644 --- a/ext/gdbm/gdbm.c +++ b/ext/gdbm/gdbm.c @@ -614,7 +614,8 @@ fgdbm_delete_if(VALUE obj) GDBM_FILE dbm; VALUE keystr, valstr; VALUE ret, ary = rb_ary_tmp_new(0); - int i, status = 0, n; + long i; + int status = 0, n; rb_gdbm_modify(obj); GetDBM2(obj, dbmp, dbm); |