diff options
Diffstat (limited to 'ext/-test-')
-rw-r--r-- | ext/-test-/win32/console/attribute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/-test-/win32/console/attribute.c b/ext/-test-/win32/console/attribute.c index 8941272ea7..a2c07fc4fe 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; } |