diff options
Diffstat (limited to 'examples/gehashmap.c')
-rw-r--r-- | examples/gehashmap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/gehashmap.c b/examples/gehashmap.c index df91669..7d6d1a4 100644 --- a/examples/gehashmap.c +++ b/examples/gehashmap.c @@ -4,10 +4,10 @@ #include <gehashmap.h> -GEHASHMAP_API(char *, int, atoimap); -GEHASHMAP_API(int, unsigned int, itoumap); -GEHASHMAP_IMPL(char *, int, atoimap); -GEHASHMAP_IMPL(int, unsigned int, itoumap); +GEHASHMAP_API(char *, int, atoimap) +GEHASHMAP_API(int, unsigned int, itoumap) +GEHASHMAP_IMPL(char *, int, atoimap) +GEHASHMAP_IMPL(int, unsigned int, itoumap) bool atoimap_key_iseq(char *a, char *b) @@ -39,7 +39,7 @@ atoimap_key_hash(char *s) char c; size_t x = 5381; - while (c = *s++) + while ((c = *s++)) x = ((x << 5) + x) + c; return x; |