From 7ae24709a6316a5f5387cde6332b5d97db431b07 Mon Sep 17 00:00:00 2001 From: normal Date: Wed, 12 Sep 2018 20:49:14 +0000 Subject: cont.c (ec_set_vm_stack): avoid needless casting Am I missing something, here? Casting was totally unnecessary and ugly... [ruby-core:88929] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- cont.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cont.c') diff --git a/cont.c b/cont.c index 29c18a8eb2..2b83c52768 100644 --- a/cont.c +++ b/cont.c @@ -253,8 +253,8 @@ fiber_status_set(rb_fiber_t *fib, enum fiber_status s) void ec_set_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size) { - *(VALUE **)(&ec->vm_stack) = stack; - *(size_t *)(&ec->vm_stack_size) = size; + ec->vm_stack = stack; + ec->vm_stack_size = size; } static inline void -- cgit v1.2.3