X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsn_hashtable.c;h=4efb76ef406021e9aa69021880bf23bf273379f7;hb=e6b060578b9e783b8c6e5ca164b988a37c753f81;hp=065664451fb830b19df90b0bcc66ee928400aa42;hpb=41a304ffa32d46f12921e19e10bce093d48cfbd9;p=sort-networks.git diff --git a/src/sn_hashtable.c b/src/sn_hashtable.c index 0656644..4efb76e 100644 --- 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);