1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

scm_t_uint64 cast in scm_i_uniform32, which was apparently Mikael's

intention (as in the HEAD).
This commit is contained in:
Kevin Ryde 2006-04-17 00:25:52 +00:00
parent d958b13ed0
commit 51c28a2047

View file

@ -80,7 +80,7 @@ scm_t_rng scm_the_rng;
unsigned long
scm_i_uniform32 (scm_t_i_rstate *state)
{
scm_t_uint64 x = (scm_t_int64) A * state->w + state->c;
scm_t_uint64 x = (scm_t_uint64) A * state->w + state->c;
scm_t_uint32 w = x & 0xffffffffUL;
state->w = w;
state->c = x >> 32L;