Skip to content

Commit

Permalink
Fix shorten-64-to-32 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed May 29, 2019
1 parent aee36bf commit 8552e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/ruby/optional/capi/ext/util_spec.c
Expand Up @@ -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;
Expand Down

0 comments on commit 8552e9d

Please sign in to comment.