OSDN Git Service

tests/hash: misc compilation fixes
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 22 Mar 2015 19:58:17 +0000 (19:58 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 5 Apr 2015 14:19:47 +0000 (15:19 +0100)
commitc53da3ac57aa646936492199f4fabc9f373f57bc
treebaab4170fc38d7e3d07076a2fa5716b965ad4b06
parent79f9cf3eb78a4feebda167ad4a3475ee1f2aa067
tests/hash: misc compilation fixes

Get the test from completely broken to working like a charm.

 - Use the same variable type for both HashInsert and HashLookup.
 - Use correct storage type for the HashLookup return value.
 - Remove useless backward iteration of HashLookup(i).

v2:
 - Use void * instead of unsigned long.
 - Change value to key << 16 | key.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
tests/hash.c