This commit is contained in:
Shaun Webb 2017-07-27 09:37:37 +09:00 committed by GitHub
parent dc997755bf
commit 2e6f285009

View File

@ -650,7 +650,7 @@ unsigned int keyHashSlot(char *key, int keylen) {
for (e = s+1; e < keylen; e++) for (e = s+1; e < keylen; e++)
if (key[e] == '}') break; if (key[e] == '}') break;
/* No '}' or nothing betweeen {} ? Hash the whole key. */ /* No '}' or nothing between {} ? Hash the whole key. */
if (e == keylen || e == s+1) return crc16(key,keylen) & 0x3FFF; if (e == keylen || e == s+1) return crc16(key,keylen) & 0x3FFF;
/* If we are here there is both a { and a } on its right. Hash /* If we are here there is both a { and a } on its right. Hash