Skip to content

Commit b6aad99

Browse files
kbleesgitster
authored andcommitted
hashmap.h: use 'unsigned int' for hash-codes everywhere
Signed-off-by: Karsten Blees <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e8fa59b commit b6aad99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/technical/api-hashmap.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ prevent expensive resizing. If 0, the table is dynamically resized.
8080
If `free_entries` is true, each hashmap_entry in the map is freed as well
8181
(using stdlib's free()).
8282

83-
`void hashmap_entry_init(void *entry, int hash)`::
83+
`void hashmap_entry_init(void *entry, unsigned int hash)`::
8484

8585
Initializes a hashmap_entry structure.
8686
+

hashmap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extern void hashmap_free(struct hashmap *map, int free_entries);
4343

4444
/* hashmap_entry functions */
4545

46-
static inline void hashmap_entry_init(void *entry, int hash)
46+
static inline void hashmap_entry_init(void *entry, unsigned int hash)
4747
{
4848
struct hashmap_entry *e = entry;
4949
e->hash = hash;

0 commit comments

Comments
 (0)