lib/ccan/asearch: fix example on 64 bit platforms.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 5 Dec 2011 06:12:49 +0000 (16:42 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 5 Dec 2011 06:12:49 +0000 (16:42 +1030)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit a8446c3ef94ae0d5f273656da12aa9a8b3abf658)

lib/ccan/asearch/_info

index 857475016fb778146025a01f92f9c0b1836c4249..4bfe40a465881af001f6e45061afb95fe42fce4b 100644 (file)
@@ -39,7 +39,7 @@
  *                     printf("Not found!\n");
  *                     return 1;
  *             }
- *             printf("%u\n", p - &argv[2]);
+ *             printf("%u\n", (int)(p - &argv[2]));
  *             return 0;
  *     }
  */