Skip to content

Commit

Permalink
hashmap.h: use 'unsigned int' for hash-codes everywhere
Browse files Browse the repository at this point in the history
Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Karsten Blees authored and Junio C Hamano committed Feb 24, 2014
1 parent e8fa59b commit b6aad99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Documentation/technical/api-hashmap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ prevent expensive resizing. If 0, the table is dynamically resized.
If `free_entries` is true, each hashmap_entry in the map is freed as well
(using stdlib's free()).

`void hashmap_entry_init(void *entry, int hash)`::
`void hashmap_entry_init(void *entry, unsigned int hash)`::

Initializes a hashmap_entry structure.
+
Expand Down
2 changes: 1 addition & 1 deletion hashmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extern void hashmap_free(struct hashmap *map, int free_entries);

/* hashmap_entry functions */

static inline void hashmap_entry_init(void *entry, int hash)
static inline void hashmap_entry_init(void *entry, unsigned int hash)
{
struct hashmap_entry *e = entry;
e->hash = hash;
Expand Down

0 comments on commit b6aad99

Please sign in to comment.