summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsamuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-20 10:13:55 +0000
committersamuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-20 10:13:55 +0000
commitff86d1b61b62c710790cfca225303327745923f6 (patch)
tree13c8c6403827676acdbf68b8e03ef0422b863248
parent9a324cf9cc553f77ddbac5de815768cb1655cfe9 (diff)
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
-rw-r--r--cont.c2
1 files changed, 1 insertions, 1 deletions
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) {