aboutsummaryrefslogtreecommitdiffstats
path: root/cont.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-09 02:26:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-09 02:26:06 +0000
commitaf4a989a987e1f7a116ee7726be4b9d0e0fac125 (patch)
tree8baf481eef954bf9285bc756ce9e928733125793 /cont.c
parentcd4fc5be39d86196d529f9c464d9c87e0b73d66d (diff)
downloadruby-af4a989a987e1f7a116ee7726be4b9d0e0fac125.tar.gz
* cont.c (cont_memsize, fiber_memsize): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cont.c b/cont.c
index ab3f9b5085..996328c554 100644
--- a/cont.c
+++ b/cont.c
@@ -130,7 +130,7 @@ cont_free(void *ptr)
static size_t
cont_memsize(const void *ptr)
{
- rb_context_t *cont = ptr;
+ const rb_context_t *cont = ptr;
size_t size = 0;
if (cont) {
size = sizeof(*cont);
@@ -208,7 +208,7 @@ fiber_free(void *ptr)
static size_t
fiber_memsize(const void *ptr)
{
- rb_fiber_t *fib = ptr;
+ const rb_fiber_t *fib = ptr;
size_t size = 0;
if (ptr) {
size = sizeof(*fib);