diff options
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |