aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-29 13:24:01 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-29 13:24:24 +0900
commit8552e9d69693b1d3f99a30d846b9dcc30bf590c2 (patch)
tree7a87895dfbfc79416d462f0473ffdb9df2d4a39d
parentaee36bf149bedf97007584ac5d6cd5d438be28b5 (diff)
downloadruby-8552e9d69693b1d3f99a30d846b9dcc30bf590c2.tar.gz
Fix shorten-64-to-32 warning
-rw-r--r--spec/ruby/optional/capi/ext/util_spec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/optional/capi/ext/util_spec.c b/spec/ruby/optional/capi/ext/util_spec.c
index 181949ee4b..50a5fcb095 100644
--- a/spec/ruby/optional/capi/ext/util_spec.c
+++ b/spec/ruby/optional/capi/ext/util_spec.c
@@ -47,7 +47,7 @@ VALUE util_spec_rb_scan_args(VALUE self, VALUE argv, VALUE fmt, VALUE expected,
static VALUE util_spec_rb_get_kwargs(VALUE self, VALUE keyword_hash, VALUE keys, VALUE required, VALUE optional) {
int req = FIX2INT(required);
int opt = FIX2INT(optional);
- int len = RARRAY_LEN(keys);
+ int len = RARRAY_LENINT(keys);
int values_len = req + (opt < 0 ? -1 - opt : opt);
int i = 0;