From 5c0aa3ad92eab5a1d4b4e5d98b128823858e21ac Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 13 Feb 2017 05:23:36 +0000 Subject: 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 --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index ff5651d3a4..f7badf5a76 100644 --- a/compile.c +++ b/compile.c @@ -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); -- cgit v1.2.3