summaryrefslogtreecommitdiff
path: root/ext/-test-/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-04 07:25:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-04 07:25:41 +0000
commit2f00182634eaa0389b46322301795de475f46cec (patch)
treece566d3ec024704d436bfd49f1fe029a7de44a44 /ext/-test-/win32
parentf6616071dc4089b772d3dcb6c1031653fb4d2054 (diff)
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
Diffstat (limited to 'ext/-test-/win32')
-rw-r--r--ext/-test-/win32/console/attribute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/-test-/win32/console/attribute.c b/ext/-test-/win32/console/attribute.c
index 8941272..a2c07fc 100644
--- a/ext/-test-/win32/console/attribute.c
+++ b/ext/-test-/win32/console/attribute.c
@@ -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;
}