[gvdb: 1/2] Make number of buckets a gsize
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvdb: 1/2] Make number of buckets a gsize
- Date: Tue, 12 Oct 2021 12:19:33 +0000 (UTC)
commit 050feb2aad14418a9fbcda32079ed947fea07614
Author: Yegor Bychin <j siga icu>
Date: Tue Oct 12 12:19:32 2021 +0000
Make number of buckets a gsize
gvdb-builder.c | 6 +++---
1 file 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]