Sfoglia il codice sorgente

increase hash string length to fix long materials, #31

Ivan Avdeev 6 anni fa
parent
commit
39aa1a5f8e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/cache.c

+ 1 - 1
src/cache.c

@@ -14,7 +14,7 @@ static void initHash(AHash *hash, struct Stack *pool, long item_size) {
 	hash->alloc_param = pool;
 	hash->alloc = (AHashAllocFunc)stackAlloc;
 	hash->nbuckets = 64;
-	hash->key_size = 64;
+	hash->key_size = 256;
 	hash->value_size = item_size;
 	hash->key_hash = aHashStringHash;
 	hash->key_compare = (AHashKeyCompareFunc)strcmp;