summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
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 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) {