projects
/
sort-networks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sn_network_get_hashval(): Return a 64bit integer value.
[sort-networks.git]
/
src
/
sn_hashtable.c
diff --git
a/src/sn_hashtable.c
b/src/sn_hashtable.c
index
0656644
..
4efb76e
100644
(file)
--- a/
src/sn_hashtable.c
+++ b/
src/sn_hashtable.c
@@
-109,7
+109,7
@@
int sn_hashtable_account (sn_hashtable_t *ht, const sn_network_t *n) /* {{{ */
if ((ht == NULL) || (n == NULL))
return (EINVAL);
- hash = sn_network_get_hashval (n);
+ hash =
(uint32_t)
sn_network_get_hashval (n);
h0 = (uint8_t) (hash >> 24);
h1 = (uint8_t) (hash >> 16);