diff options
author | Kevin Ryde <user42@zip.com.au> | 2005-01-23 23:58:43 +0000 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2005-01-23 23:58:43 +0000 |
commit | 8b3747f9c6c7714f6796e216095d840f9627f3cb (patch) | |
tree | 793eff9cc4e2aba453cf12c6fc0626b8d95baefb | |
parent | a1b8491411857ab4cd782a9ff6d409c32ac9b249 (diff) | |
download | guile-8b3747f9c6c7714f6796e216095d840f9627f3cb.tar.gz |
(scm_i_init_rstate): Compare w to -1 not 0xffffffffUL, now
that it's an scm_t_int32. Otherwise gcc 3.4 says it's always false on
a 64-bit system.
-rw-r--r-- | libguile/random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/random.c b/libguile/random.c index ec00d5ccf..83e58c409 100644 --- a/libguile/random.c +++ b/libguile/random.c @@ -133,7 +133,7 @@ scm_i_init_rstate (scm_t_i_rstate *state, const char *seed, int n) else c += seed[i] << (8 * (m - 4)); } - if ((w == 0 && c == 0) || (w == 0xffffffffUL && c == A - 1)) + if ((w == 0 && c == 0) || (w == -1 && c == A - 1)) ++c; state->w = w; state->c = c; |