ruby-changes:55899
From: Nobuyoshi <ko1@a...>
Date: Wed, 29 May 2019 13:25:39 +0900 (JST)
Subject: [ruby-changes:55899] Nobuyoshi Nakada: 8552e9d696 (trunk): Fix shorten-64-to-32 warning
https://git.ruby-lang.org/ruby.git/commit/?id=8552e9d696 From 8552e9d69693b1d3f99a30d846b9dcc30bf590c2 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 29 May 2019 13:24:01 +0900 Subject: Fix shorten-64-to-32 warning diff --git a/spec/ruby/optional/capi/ext/util_spec.c b/spec/ruby/optional/capi/ext/util_spec.c index 181949e..50a5fcb 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, https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/ext/util_spec.c#L47 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; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/