diff options
-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); |