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
This commit is contained in:
parent
9a324cf9cc
commit
ff86d1b61b
2
cont.c
2
cont.c
@ -406,7 +406,7 @@ cont_free(void *ptr)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* fiber */
|
/* fiber */
|
||||||
const rb_fiber_t *fib = (rb_fiber_t*)cont;
|
rb_fiber_t *fib = (rb_fiber_t*)cont;
|
||||||
#if defined(FIBER_USE_COROUTINE)
|
#if defined(FIBER_USE_COROUTINE)
|
||||||
coroutine_destroy(&fib->context);
|
coroutine_destroy(&fib->context);
|
||||||
if (fib->ss_sp != NULL) {
|
if (fib->ss_sp != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user