X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dfd8237e0cfdac335f6dfe1bf9a6adc868d58dd2..5abba74d84f1729497d604c695dee7b59e4a5df5:/examples/msg/dht-kademlia/node.c diff --git a/examples/msg/dht-kademlia/node.c b/examples/msg/dht-kademlia/node.c index e854b52732..c0741d681c 100644 --- a/examples/msg/dht-kademlia/node.c +++ b/examples/msg/dht-kademlia/node.c @@ -116,13 +116,13 @@ unsigned int get_id_in_prefix(unsigned int id, unsigned int prefix) if (prefix == 0) { return 0; } else { - return (1 << ((unsigned int)(prefix - 1))) ^ id; + return (1U << ((unsigned int)(prefix - 1))) ^ id; } } /** @brief Returns the prefix of an identifier. * The prefix is the id of the bucket in which the remote identifier xor our identifier should be stored. - * @param id : bigunsigned int id to test + * @param id : big unsigned int id to test * @param nb_bits : key size */ unsigned int get_node_prefix(unsigned int id, unsigned int nb_bits)