summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-27 21:36:12 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-27 21:38:08 +0900
commit039ba387aa3c94600c60bbc2d7a9cf448f843ca5 (patch)
tree9424b858ce86c1c8769982cd36de25254ba820cf /random.c
parent5d8fe1267d2d4e60943e7b41f6dad990a53e077b (diff)
Use opaque struct pointer than void
Diffstat (limited to 'random.c')
-rw-r--r--random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/random.c b/random.c
index 76183f9..6b26e2b 100644
--- a/random.c
+++ b/random.c
@@ -149,11 +149,11 @@ rand_start(rb_random_mt_t *r)
static rb_random_mt_t *
default_rand(void)
{
- void *rb_ractor_default_rand(void *); // ractor.c
+ rb_random_t *rb_ractor_default_rand(rb_random_t *); // ractor.c
rb_random_mt_t *rnd = (rb_random_mt_t *)rb_ractor_default_rand(NULL);
if (rnd == NULL) {
rnd = ZALLOC(rb_random_mt_t);
- rb_ractor_default_rand(rnd);
+ rb_ractor_default_rand(&rnd->base);
}
return rnd;
}