diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-24 01:25:19 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-24 01:25:19 +0000 |
commit | 3dbb97708b3295787a665d97b543862ee049e6c9 (patch) | |
tree | 1a4cdab37da9a7232752bc04e92e120cac33b3f8 | |
parent | fea562417fa8589365aeb9b994ff36d952305f1a (diff) |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/io/console/console.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Mar 24 10:04:35 2011 NARUSE, Yui <naruse@ruby-lang.org> + + * ext/io/console/console.c (console_set_winsize): + surpress warning: shorten-64-to-32. + Thu Mar 24 09:56:19 2011 NARUSE, Yui <naruse@ruby-lang.org> * 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); |