diff options
-rw-r--r-- | ext/-test-/win32/console/attribute.c | 2 | ||||
-rw-r--r-- | vm.c | 2 |
2 files changed, 2 insertions, 2 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; } @@ -677,7 +677,7 @@ rb_vm_make_proc(rb_thread_t *th, const rb_block_t *block, VALUE klass) } procval = rb_proc_alloc(klass, block, envval, blockprocval, - th->safe_level, 0, 0); + (int8_t)th->safe_level, 0, 0); if (VMDEBUG) { if (th->stack < block->ep && block->ep < th->stack + th->stack_size) { |