sn_network_get_hashval(): Return a 64bit integer value.
[sort-networks.git] / src / sn_hashtable.c
index 0656644..4efb76e 100644 (file)
@@ -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);