Don't limite the range of the hash function. It's the dutty of the caller.
authorcedric <cedric>
Mon, 15 Sep 2008 12:35:27 +0000 (12:35 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 15 Sep 2008 12:35:27 +0000 (12:35 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eina@35998 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/include/eina_inline_hash.x

index 86657ac..9fc5493 100644 (file)
@@ -34,7 +34,6 @@ eina_hash_djb2(const char *key, int len)
    for (ptr = (unsigned char *)key; len; ptr++, len--)
      hash_num = ((hash_num << 5) + hash_num) ^ *ptr; /* hash * 33 ^ c */
 
-   hash_num &= 0xff;
    return (int)hash_num;
 }