Revert "blua: handle 0 length strings in hash_sparse"
This reverts commit c582767603.
This commit is contained in:
parent
ecd29f9668
commit
b04bfe08a7
1 changed files with 0 additions and 3 deletions
|
|
@ -90,9 +90,6 @@ static unsigned hash_sparse(const char *str, size_t len)
|
|||
{
|
||||
/* Constants taken from lookup3 hash by Bob Jenkins. */
|
||||
unsigned int a, b, h = cast(unsigned int, len);
|
||||
|
||||
if (len == 0) return 0;
|
||||
|
||||
#define rol(x, n) (((x)<<(n)) | ((x)>>(-cast(int, n)&(8*sizeof(x)-1))))
|
||||
if (len >= 4) { /* Caveat: unaligned access! */
|
||||
a = getu32(str);
|
||||
|
|
|
|||
Loading…
Reference in a new issue