[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
1 changed files with 1 additions and 1 deletions

View File

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