Browse Source

short_types: fix example for 64 bit platforms

Use correct printf string.
Rusty Russell 14 years ago
parent
commit
a6aa7d044c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ccan/short_types/_info

+ 1 - 1
ccan/short_types/_info

@@ -29,7 +29,7 @@
  *			     unsigned int *posix_total, unsigned int *sht_total,
  *			     unsigned int *size_total)
  *	{
- *		printf("\t%ssigned %s: POSIX %i%%, short %i%%\n",
+ *		printf("\t%ssigned %s: POSIX %zu%%, short %zu%%\n",
  *		       sht[0] == 'u' ? "un" : "",
  *		       sht+1,
  *		       strlen(posix)*100 / size,