hashmap.h: use 'unsigned int' for hash-codes everywhere

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Karsten Blees 2013-12-18 14:41:27 +01:00 коммит произвёл Junio C Hamano
Родитель e8fa59b908
Коммит b6aad99473
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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 If `free_entries` is true, each hashmap_entry in the map is freed as well
(using stdlib's free()). (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. Initializes a hashmap_entry structure.
+ +

Просмотреть файл

@ -43,7 +43,7 @@ extern void hashmap_free(struct hashmap *map, int free_entries);
/* hashmap_entry functions */ /* 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; struct hashmap_entry *e = entry;
e->hash = hash; e->hash = hash;