]> git.ozlabs.org Git - ccan/commitdiff
asearch: fix example on 64 bit platforms.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Oct 2011 01:38:45 +0000 (12:08 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Oct 2011 01:38:45 +0000 (12:08 +1030)
ccan/asearch/_info

index feed5b587fb02b48f555d8b44926e7e58a7b6a07..f23f1fd705a620b48994273b6b2d71db9d9070db 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;
  *     }
  */