summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-09 02:11:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-09 02:11:35 +0000
commitb46cd0e400ff278897908479acc9163419341b07 (patch)
treedaab782e1f5e1f849b34fd1c11bd825c860f4c1a /random.c
parent85cc4ff62a95500ee748f9d5d987a0003d43b4e5 (diff)
* include/ruby/ruby.h (rb_data_type_struct): constified dsize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index b9383f9cfc..d3451b83cd 100644
--- a/random.c
+++ b/random.c
@@ -315,7 +315,7 @@ random_mark(void *ptr)
#define random_free RUBY_TYPED_DEFAULT_FREE
static size_t
-random_memsize(void *ptr)
+random_memsize(const void *ptr)
{
return ptr ? sizeof(rb_random_t) : 0;
}