]> AND Public Git Repository - simgrid.git/blobdiff - examples/c/dht-pastry/dht-pastry.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
doc: fix formating and functions signatures
[simgrid.git] / examples / c / dht-pastry / dht-pastry.c
index 7fcc0b2010db5c9e7a0a53b4c6de140289ee632e..af12bf377cb4fb13d9e63ea071af945420fc837d 100644 (file)
@@ -82,7 +82,7 @@ unsigned int domain_mask = 0;
 static int domain(unsigned int a, unsigned int level)
 {
   if (domain_mask == 0)
-    domain_mask = (1u << DOMAIN_SIZE) - 1;
+    domain_mask = (1U << DOMAIN_SIZE) - 1;
   unsigned int shift = (LEVELS_COUNT - level - 1) * DOMAIN_SIZE;
   return (a >> shift) & domain_mask;
 }