summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-12 20:49:14 (GMT)
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-12 20:49:14 (GMT)
commit7ae24709a6316a5f5387cde6332b5d97db431b07 (patch)
treeb3b36a3ce792689342d31545909492741c94bf1b /cont.c
parentc99b9eb03952284f213b714acaf7f4885ce177c2 (diff)
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
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cont.c b/cont.c
index 29c18a8..2b83c52 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