diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-13 05:23:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-13 05:23:36 +0000 |
commit | 5c0aa3ad92eab5a1d4b4e5d98b128823858e21ac (patch) | |
tree | edf43e9bb6f1f748ceb6fab4e723ce93fe6a40d8 /compile.c | |
parent | 44e36c79d249a5c101786107eb76c42df41b94cc (diff) | |
download | ruby-5c0aa3ad92eab5a1d4b4e5d98b128823858e21ac.tar.gz |
compile.c: suppress a warning
* compile.c (iseq_build_kw): suppress an alloc-size-larger-than
warning by gcc 7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6892,7 +6892,7 @@ iseq_build_kw(rb_iseq_t *iseq, VALUE params, VALUE keywords) return keyword; } - dvs = ALLOC_N(VALUE, default_len); + dvs = ALLOC_N(VALUE, (unsigned int)default_len); for (j = 0; i < len; i++, j++) { key = RARRAY_AREF(keywords, i); |