From 3dbb97708b3295787a665d97b543862ee049e6c9 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 24 Mar 2011 01:25:19 +0000 Subject: * ext/io/console/console.c (console_set_winsize): surpress warning: shorten-64-to-32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/io/console/console.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d3e6646b00..57a7ddbf04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Mar 24 10:04:35 2011 NARUSE, Yui + + * ext/io/console/console.c (console_set_winsize): + surpress warning: shorten-64-to-32. + Thu Mar 24 09:56:19 2011 NARUSE, Yui * ext/openssl/ossl_ocsp.c (ossl_ocspreq_verify): flags is VALUE, diff --git a/ext/io/console/console.c b/ext/io/console/console.c index f7f95e933f..9ccb452085 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -414,7 +414,7 @@ console_set_winsize(VALUE io, VALUE size) GetOpenFile(io, fptr); size = rb_Array(size); - rb_scan_args(RARRAY_LEN(size), RARRAY_PTR(size), "22", + rb_scan_args((int)RARRAY_LEN(size), RARRAY_PTR(size), "22", &row, &col, &xpixel, &ypixel); #if defined TIOCSWINSZ fd = GetWriteFD(fptr); -- cgit v1.2.1