mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* cont.c (cont_memsize, fiber_memsize): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cd4fc5be39
commit
af4a989a98
1 changed files with 2 additions and 2 deletions
4
cont.c
4
cont.c
|
@ -130,7 +130,7 @@ cont_free(void *ptr)
|
||||||
static size_t
|
static size_t
|
||||||
cont_memsize(const void *ptr)
|
cont_memsize(const void *ptr)
|
||||||
{
|
{
|
||||||
rb_context_t *cont = ptr;
|
const rb_context_t *cont = ptr;
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
if (cont) {
|
if (cont) {
|
||||||
size = sizeof(*cont);
|
size = sizeof(*cont);
|
||||||
|
@ -208,7 +208,7 @@ fiber_free(void *ptr)
|
||||||
static size_t
|
static size_t
|
||||||
fiber_memsize(const void *ptr)
|
fiber_memsize(const void *ptr)
|
||||||
{
|
{
|
||||||
rb_fiber_t *fib = ptr;
|
const rb_fiber_t *fib = ptr;
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
if (ptr) {
|
if (ptr) {
|
||||||
size = sizeof(*fib);
|
size = sizeof(*fib);
|
||||||
|
|
Loading…
Reference in a new issue