summaryrefslogtreecommitdiffstats
path: root/rand.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-12-28 09:00:35 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-12-28 09:00:35 -0800
commitad61b752ac165ce09fe1ed766e475286d36fbf18 (patch)
tree949f2063e44586b22d994dbd4c318dfc21fbb506 /rand.c
parentce204c4b2f69791854717265a64ce196e3ee10cc (diff)
downloadtxr-ad61b752ac165ce09fe1ed766e475286d36fbf18.tar.gz
txr-ad61b752ac165ce09fe1ed766e475286d36fbf18.tar.bz2
txr-ad61b752ac165ce09fe1ed766e475286d36fbf18.zip
* match.c (LOG_MATCH): Use < in format directive instead of -.
* rand.c (random): Add back missing declaration.
Diffstat (limited to 'rand.c')
-rw-r--r--rand.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rand.c b/rand.c
index 02c42c18..b28398ba 100644
--- a/rand.c
+++ b/rand.c
@@ -218,8 +218,9 @@ val random(val state, val modulus)
goto invalid;
for (;;) {
cnum out = 0;
-
#if SIZEOF_PTR >= 8
+ int i;
+
for (i = 0; i < rands_needed; i++) {
rand32_t rnd = rand32(r);
out <<= 32;