mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
suppress warnings
* vm.c (rb_vm_make_proc): cast to suppress warning by VC6. * ext/-test-/win32/console/attribute.c (console_set_attribute): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f6616071dc
commit
2f00182634
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ console_set_attribute(VALUE io, VALUE attr)
|
|||
HANDLE h = (HANDLE)rb_w32_get_osfhandle(fd);
|
||||
|
||||
if (h == (HANDLE)-1) rb_raise(rb_eIOError, "invalid io");
|
||||
SetConsoleTextAttribute(h, NUM2INT(attr));
|
||||
SetConsoleTextAttribute(h, (WORD)NUM2INT(attr));
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue