From ff86d1b61b62c710790cfca225303327745923f6 Mon Sep 17 00:00:00 2001 From: samuel Date: Tue, 20 Nov 2018 10:13:55 +0000 Subject: It cannot be const because it is being passed to destructive operation (destroy). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- cont.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cont.c b/cont.c index d7680faf5d..8ae7a4ec37 100644 --- a/cont.c +++ b/cont.c @@ -406,7 +406,7 @@ cont_free(void *ptr) } else { /* fiber */ - const rb_fiber_t *fib = (rb_fiber_t*)cont; + rb_fiber_t *fib = (rb_fiber_t*)cont; #if defined(FIBER_USE_COROUTINE) coroutine_destroy(&fib->context); if (fib->ss_sp != NULL) { -- cgit v1.2.3