CONCORD_HASH_TABLE* concord_make_hash_table (size_t size);
void concord_destroy_hash_table (CONCORD_HASH_TABLE* hash);
-int concord_hash_c_string (const unsigned char *ptr);
+unsigned long concord_hash_c_string (const unsigned char *ptr);
CONCORD_HASH_TABLE*
concord_make_hash_table (size_t size)
/* derived from hashpjw, Dragon Book P436. */
-int
+unsigned long
concord_hash_c_string (const unsigned char *ptr)
{
- int hash = 0;
+ unsigned long hash = 0;
while (*ptr != '\0')
{
- int g;
+ unsigned long g;
hash = (hash << 4) + *ptr++;
g = hash & 0xf0000000;
if (g)