ruby-changes:53624
From: samuel <ko1@a...>
Date: Tue, 20 Nov 2018 19:14:00 +0900 (JST)
Subject: [ruby-changes:53624] samuel:r65846 (trunk): It cannot be const because it is being passed to destructive operation (destroy).
samuel 2018-11-20 19:13:55 +0900 (Tue, 20 Nov 2018) New Revision: 65846 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65846 Log: It cannot be const because it is being passed to destructive operation (destroy). Modified files: trunk/cont.c Index: cont.c =================================================================== --- cont.c (revision 65845) +++ cont.c (revision 65846) @@ -406,7 +406,7 @@ cont_free(void *ptr) https://github.com/ruby/ruby/blob/trunk/cont.c#L406 } 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) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/