diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-07-02 19:58:49 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-07-02 19:58:49 +0200 |
commit | 6100a491eb40183aa61d2966ffd6e38f0dff8552 (patch) | |
tree | 7540b0d0fc2b4f36744b661c4f031ce44213b0e9 /fitz/base_hash.c | |
parent | a691572f1252ff415e02588569102e5e2c6d717c (diff) | |
download | mupdf-6100a491eb40183aa61d2966ffd6e38f0dff8552.tar.xz |
Remove shadowed local variables.
Diffstat (limited to 'fitz/base_hash.c')
-rw-r--r-- | fitz/base_hash.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fitz/base_hash.c b/fitz/base_hash.c index 9f96b75d..a1c46a7d 100644 --- a/fitz/base_hash.c +++ b/fitz/base_hash.c @@ -30,18 +30,18 @@ struct fz_hashtable_s static unsigned hash(unsigned char *s, int len) { - unsigned hash = 0; + unsigned val = 0; int i; for (i = 0; i < len; i++) { - hash += s[i]; - hash += (hash << 10); - hash ^= (hash >> 6); + val += s[i]; + val += (val << 10); + val ^= (val >> 6); } - hash += (hash << 3); - hash ^= (hash >> 11); - hash += (hash << 15); - return hash; + val += (val << 3); + val ^= (val >> 11); + val += (val << 15); + return val; } fz_hashtable * |