diff options
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/hashmap.c | 2 | ||||
-rw-r--r-- | src/pulsecore/idxset.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/hashmap.c b/src/pulsecore/hashmap.c index 2cddba1d..6e0e6b02 100644 --- a/src/pulsecore/hashmap.c +++ b/src/pulsecore/hashmap.c @@ -34,7 +34,7 @@ #include "hashmap.h" -#define BUCKETS 1023 +#define BUCKETS 127 struct hashmap_entry { struct hashmap_entry *next, *previous, *bucket_next, *bucket_previous; diff --git a/src/pulsecore/idxset.c b/src/pulsecore/idxset.c index ddce623a..d3aec2de 100644 --- a/src/pulsecore/idxset.c +++ b/src/pulsecore/idxset.c @@ -78,7 +78,7 @@ pa_idxset* pa_idxset_new(unsigned (*hash_func) (const void *p), int (*compare_fu s = pa_xnew(pa_idxset, 1); s->hash_func = hash_func ? hash_func : pa_idxset_trivial_hash_func; s->compare_func = compare_func ? compare_func : pa_idxset_trivial_compare_func; - s->hash_table_size = 1023; + s->hash_table_size = 127; s->hash_table = pa_xmalloc0(sizeof(idxset_entry*)*s->hash_table_size); s->array = NULL; s->array_size = 0; |