diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2021-10-12 12:19:32 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2021-10-12 12:19:32 +0000 |
commit | dcd781fb7ab565f9d4244d6157bbdd741c8ac6cd (patch) | |
tree | 1bf4d22141762c643bc52cd7aeb7df3fbf92c9f8 | |
parent | 4fb16d4c8a73efae7b679bfb6e86017022805702 (diff) | |
parent | 050feb2aad14418a9fbcda32079ed947fea07614 (diff) | |
download | gvdb-dcd781fb7ab565f9d4244d6157bbdd741c8ac6cd.tar.gz |
Merge branch 'nosigned' into 'master'
Make number of buckets a gsize
See merge request GNOME/gvdb!17
-rw-r--r-- | gvdb-builder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gvdb-builder.c b/gvdb-builder.c index dcde43f..5dae03e 100644 --- a/gvdb-builder.c +++ b/gvdb-builder.c @@ -162,11 +162,11 @@ gvdb_item_set_parent (GvdbItem *item, typedef struct { GvdbItem **buckets; - gint n_buckets; + gsize n_buckets; } HashTable; static HashTable * -hash_table_new (gint n_buckets) +hash_table_new (gsize n_buckets) { HashTable *table; @@ -361,7 +361,7 @@ file_builder_add_hash (FileBuilder *fb, HashTable *mytable; GvdbItem *item; guint32 index; - gint bucket; + gsize bucket; mytable = hash_table_new (g_hash_table_size (table)); g_hash_table_foreach (table, hash_table_insert, mytable); |