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:
parent
d958b13ed0
commit
51c28a2047
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue