diff options
Diffstat (limited to 'base/hash.c')
-rw-r--r-- | base/hash.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/base/hash.c b/base/hash.c index c6d811c2..e54ac7ea 100644 --- a/base/hash.c +++ b/base/hash.c @@ -31,18 +31,18 @@ struct fz_hashtable_s static unsigned hash(unsigned char *s, int len) { - unsigned hash = 0; - int i; - for (i = 0; i < len; i++) - { - hash += s[i]; - hash += (hash << 10); - hash ^= (hash >> 6); - } - hash += (hash << 3); - hash ^= (hash >> 11); - hash += (hash << 15); - return hash; + unsigned hash = 0; + int i; + for (i = 0; i < len; i++) + { + hash += s[i]; + hash += (hash << 10); + hash ^= (hash >> 6); + } + hash += (hash << 3); + hash ^= (hash >> 11); + hash += (hash << 15); + return hash; } fz_error * |