[project @ 2003-07-02 14:30:53 by bursa]

Make hash function case insensitive.

svn path=/import/netsurf/; revision=198
This commit is contained in:
James Bursa 2003-07-02 14:30:53 +00:00
parent 484eaf8297
commit c3d3a1baae

View File

@ -660,7 +660,7 @@ unsigned int css_hash(const char *s)
if (s == 0)
return 0;
for (; *s != 0; s++)
z += *s;
z += *s & 0x1f; /* lower 5 bits, case insensitive */
return (z % (HASH_SIZE - 1)) + 1;
}