test-hashmap: use "unsigned int" for hash storage
authorJeff King <peff@peff.net>
Wed, 14 Feb 2018 18:08:57 +0000 (13:08 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Feb 2018 18:31:10 +0000 (10:31 -0800)
commita6119f82b118c7adea9ede0b3813810b06e37668
treeabbdf5f39a46bfb2677431f72a0668af48e6e2bc
parent7daa825d677dcbd40724cb146f3949b7d574e8b3
test-hashmap: use "unsigned int" for hash storage

The hashmap API always use an unsigned value for storing
and comparing hashes. Whereas this test code uses "int".
This works out in practice since one can typically
round-trip between "int" and "unsigned int". But since this
is essentially reference code for the hashmap API, we should
model using the correct types.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-hashmap.c