summaryrefslogtreecommitdiffstats
path: root/rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'rand.c')
-rw-r--r--rand.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rand.c b/rand.c
index cad1fd3e..6c73f9cf 100644
--- a/rand.c
+++ b/rand.c
@@ -139,8 +139,7 @@ val make_random_state(val seed, val warmup)
val self = lit("make-random-state");
val rs = make_state();
int i = 0;
- struct rand_state *r = coerce(struct rand_state *,
- cobj_handle(self, rs, random_state_cls));
+ struct rand_state *r = coerce(struct rand_state *, rs->co.handle);
seed = default_null_arg(seed);
warmup = default_null_arg(warmup);