X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/90c9c01d50178a8a5398193f5dc16753f568e403..3c6276aa01e97101adf7ff78cab24c44ad2d48fc:/examples/c/dht-kademlia/node.c diff --git a/examples/c/dht-kademlia/node.c b/examples/c/dht-kademlia/node.c index d8204d35aa..c987618be7 100644 --- a/examples/c/dht-kademlia/node.c +++ b/examples/c/dht-kademlia/node.c @@ -156,7 +156,7 @@ void routing_table_update(const_node_t node, unsigned int id) // check if the id is already in the bucket. unsigned int id_pos = bucket_find_id(bucket, id); - if (id_pos == -1) { + if (id_pos == (unsigned int)-1) { /* We check if the bucket is full or not. If it is, we evict an old element */ if (xbt_dynar_length(bucket->nodes) >= BUCKET_SIZE) xbt_dynar_pop(bucket->nodes, NULL);