Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill all horizontal tabs
[simgrid.git] / tools / cmake / test_prog / prog_stackgrowth.c
index d75dde5..dabc6b7 100644 (file)
@@ -11,7 +11,7 @@ static int iterate = 10;
 static int growsdown(int *x)
 {
   int y = (x > &y);
-   
+
   if (--iterate > 0)
     y = growsdown(&y);
 
@@ -21,7 +21,7 @@ static int growsdown(int *x)
    */
   if (iterate != 0 && y != (x > &y)) {
     fprintf(stderr, "The stack changed its direction! (Iteration: %d. It was growing %s; &y=%p; &prevY=%p)\n",
-           (10-iterate), y?"down":"up", &y, x);
+            (10 - iterate), y ? "down" : "up", &y, x);
     exit(1);
   }
   return y;