summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-04 07:25:41 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-04 07:25:41 (GMT)
commit2f00182634eaa0389b46322301795de475f46cec (patch)
treece566d3ec024704d436bfd49f1fe029a7de44a44 /vm.c
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 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 3eda7f4..cb34323 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) {