From 2f00182634eaa0389b46322301795de475f46cec Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 4 Nov 2014 07:25:41 +0000 Subject: 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 --- vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 3eda7f4ca3..cb343236a4 100644 --- a/vm.c +++ b/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, - 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) { -- cgit v1.2.3