diff options
author | Mattias Andrée <maandree@kth.se> | 2016-03-30 21:52:28 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-03-30 21:52:28 +0200 |
commit | 9c064871fea47b9c9ed227dc03ba0b2c363ed4a9 (patch) | |
tree | f6d6a3dc15908e6ef9d37b782bfe0d1c6a052d44 /src/string | |
parent | strfry: reset n to max when the do..while loop resets (diff) | |
download | slibc-9c064871fea47b9c9ed227dc03ba0b2c363ed4a9.tar.gz slibc-9c064871fea47b9c9ed227dc03ba0b2c363ed4a9.tar.bz2 slibc-9c064871fea47b9c9ed227dc03ba0b2c363ed4a9.tar.xz |
strfry: forgot to declare b
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | src/string/strfry.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string/strfry.c b/src/string/strfry.c index cf6324b..3873c88 100644 --- a/src/string/strfry.c +++ b/src/string/strfry.c @@ -38,6 +38,7 @@ static size_t uniform_random_zu(size_t max) { size_t n, r = 0, mask = max, s = 1; + int b; while (((mask + 1) & ~mask) != mask + 1) mask |= mask >> s++; do |