mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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);
|
HANDLE h = (HANDLE)rb_w32_get_osfhandle(fd);
|
||||||
|
|
||||||
if (h == (HANDLE)-1) rb_raise(rb_eIOError, "invalid io");
|
if (h == (HANDLE)-1) rb_raise(rb_eIOError, "invalid io");
|
||||||
SetConsoleTextAttribute(h, NUM2INT(attr));
|
SetConsoleTextAttribute(h, (WORD)NUM2INT(attr));
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
vm.c
2
vm.c
|
@ -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,
|
procval = rb_proc_alloc(klass, block, envval, blockprocval,
|
||||||
th->safe_level, 0, 0);
|
(int8_t)th->safe_level, 0, 0);
|
||||||
|
|
||||||
if (VMDEBUG) {
|
if (VMDEBUG) {
|
||||||
if (th->stack < block->ep && block->ep < th->stack + th->stack_size) {
|
if (th->stack < block->ep && block->ep < th->stack + th->stack_size) {
|
||||||
|
|
Loading…
Reference in a new issue