Procházet zdrojové kódy

tests/datawizard/handle_to_pointer.c: cast before printing

Nathalie Furmento před 13 roky
rodič
revize
2d60efd595
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      tests/datawizard/handle_to_pointer.c

+ 1 - 1
tests/datawizard/handle_to_pointer.c

@@ -160,7 +160,7 @@ int main(int argc, char *argv[])
 		  int *numbers = (int *)pointer;
 		  if (numbers[i] != i)
 		  {
-		       FPRINTF(stderr, "Incorrect value numbers[%d] == %d should be %d\n", i, numbers[i], i);
+		       FPRINTF(stderr, "Incorrect value numbers[%d] == %d should be %d\n", (int)i, numbers[i], (int)i);
 		       ret = EXIT_FAILURE;
 		  }
 	     }