summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hash.c b/hash.c
index 5877dc6..6a60896 100644
--- a/hash.c
+++ b/hash.c
@@ -174,14 +174,14 @@ value_first_cmp(const void *v1, const void *v2)
HashBucketPtr *
hashArray(HashTablePtr table, int value_first)
{
- int j;
+ unsigned int j;
int n = hashElements(table);
HashBucketPtr *dst = malloc((n + 1) * sizeof(HashBucketPtr));
if (dst == NULL)
return NULL;
j = 0;
- for (int i = 0; i < NUMBUCKETS; i++) {
+ for (unsigned int i = 0; i < NUMBUCKETS; i++) {
while (table[i]) {
dst[j++] = table[i];
table[i] = table[i]->next;
@@ -198,7 +198,7 @@ hashArray(HashTablePtr table, int value_first)
void
destroyHashArray(HashBucketPtr *array)
{
- int i = 0;
+ unsigned int i = 0;
while (array[i]) {
free(array[i]->key);