1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix shorten-64-to-32 warning

This commit is contained in:
Nobuyoshi Nakada 2019-05-29 13:24:01 +09:00
parent aee36bf149
commit 8552e9d696
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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;