mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-14 16:37:33 +02:00
fixing sexp_make_random_source type tag on linux
This commit is contained in:
parent
260f55adec
commit
63cea7ccb5
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ sexp sexp_make_random_source (sexp ctx, sexp self, sexp_sint_t n) {
|
||||||
sexp_gc_var1(state);
|
sexp_gc_var1(state);
|
||||||
sexp_gc_preserve1(ctx, state);
|
sexp_gc_preserve1(ctx, state);
|
||||||
state = sexp_make_bytes(ctx, STATE_SIZE, SEXP_UNDEF);
|
state = sexp_make_bytes(ctx, STATE_SIZE, SEXP_UNDEF);
|
||||||
res = sexp_alloc_tagged(ctx, sexp_sizeof_random, sexp_opcode_return_type(self));
|
res = sexp_alloc_tagged(ctx, sexp_sizeof_random, sexp_unbox_fixnum(sexp_opcode_return_type(self)));
|
||||||
if (sexp_exceptionp(res)) return res;
|
if (sexp_exceptionp(res)) return res;
|
||||||
sexp_random_state(res) = state;
|
sexp_random_state(res) = state;
|
||||||
sexp_random_init(res, 1);
|
sexp_random_init(res, 1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue