projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9166d49
)
(is_prime): Return bool rather than int.
author
Jim Meyering
<jim@meyering.net>
Wed, 17 Mar 1999 14:07:34 +0000
(14:07 +0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 17 Mar 1999 14:07:34 +0000
(14:07 +0000)
lib/hash.c
patch
|
blob
|
history
diff --git
a/lib/hash.c
b/lib/hash.c
index 70ec0094ecace5c6f18d951735042673144f48ff..e26d0d047602e92c841cc686a71150c89664820d 100644
(file)
--- a/
lib/hash.c
+++ b/
lib/hash.c
@@
-402,7
+402,7
@@
hash_string (const char *string, unsigned n_buckets)
/* Return true if CANDIDATE is a prime number. CANDIDATE should be an odd
number at least equal to 11. */
-static
int
+static
bool
is_prime (unsigned long candidate)
{
unsigned long divisor = 3;