aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-30 21:53:16 +0200
committerMattias Andrée <maandree@kth.se>2016-03-30 21:53:16 +0200
commitff73894ec8b167a8a82671283c51be3a5dd14321 (patch)
treeca044e442a7a825169fbb816b491922c68c0c302 /src
parentstrfry: forgot to declare b (diff)
downloadslibc-ff73894ec8b167a8a82671283c51be3a5dd14321.tar.gz
slibc-ff73894ec8b167a8a82671283c51be3a5dd14321.tar.bz2
slibc-ff73894ec8b167a8a82671283c51be3a5dd14321.tar.xz
whoops, wrong type
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
-rw-r--r--src/string/strfry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/strfry.c b/src/string/strfry.c
index 3873c88..bf56f39 100644
--- a/src/string/strfry.c
+++ b/src/string/strfry.c
@@ -38,7 +38,7 @@ static size_t
uniform_random_zu(size_t max)
{
size_t n, r = 0, mask = max, s = 1;
- int b;
+ double b;
while (((mask + 1) & ~mask) != mask + 1)
mask |= mask >> s++;
do