Skip to content

Commit 347791c

Browse files
committed
Allow passing bigger bucket size for hash table.
1 parent 7443d29 commit 347791c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/zip_hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct zip_hash {
4949
};
5050

5151
zip_hash_t *
52-
_zip_hash_new(zip_uint16_t table_size, zip_error_t *error)
52+
_zip_hash_new(zip_uint32_t table_size, zip_error_t *error)
5353
{
5454
zip_hash_t *hash;
5555

lib/zipint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ bool _zip_hash_add(zip_hash_t *hash, const zip_uint8_t *name, zip_uint64_t index
486486
bool _zip_hash_delete(zip_hash_t *hash, const zip_uint8_t *key, zip_error_t *error);
487487
void _zip_hash_free(zip_hash_t *hash);
488488
zip_int64_t _zip_hash_lookup(zip_hash_t *hash, const zip_uint8_t *name, zip_flags_t flags, zip_error_t *error);
489-
zip_hash_t *_zip_hash_new(zip_uint16_t hash_size, zip_error_t *error);
489+
zip_hash_t *_zip_hash_new(zip_uint32_t hash_size, zip_error_t *error);
490490
void _zip_hash_revert(zip_hash_t *hash);
491491

492492
zip_t *_zip_open(zip_source_t *, unsigned int, zip_error_t *);

0 commit comments

Comments
 (0)