[devel] changed "(unsigned int)" to "(unsigned long)" typecasts

in printf statements in pngvalid.c, and changed %ud to %lu.
This commit is contained in:
Glenn Randers-Pehrson 2010-10-08 16:27:14 -05:00
parent e9c395a3bf
commit 9a75d99438
3 changed files with 12 additions and 12 deletions

View File

@ -410,7 +410,7 @@ Version 1.5.0beta49 [October 8, 2010]
Version 1.5.0beta50 [October 8, 2010] Version 1.5.0beta50 [October 8, 2010]
Revised Makefile.in to account for mkinstalldirs being removed. Revised Makefile.in to account for mkinstalldirs being removed.
Added some "(unsigned int)" typecasts in printf statements in pngvalid.c. Added some "(unsigned long)" typecasts in printf statements in pngvalid.c.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net: Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit (subscription required; visit

View File

@ -3048,7 +3048,7 @@ Version 1.5.0beta49 [October 8, 2010]
Version 1.5.0beta50 [October 8, 2010] Version 1.5.0beta50 [October 8, 2010]
Revised Makefile.in to account for mkinstalldirs being removed. Revised Makefile.in to account for mkinstalldirs being removed.
Added some "(unsigned int)" typecasts in printf statements in pngvalid.c. Added some "(unsigned long)" typecasts in printf statements in pngvalid.c.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit

View File

@ -821,8 +821,8 @@ store_pool_delete(png_store *ps, store_pool *pool)
pool->list = next->next; pool->list = next->next;
next->next = NULL; next->next = NULL;
fprintf(stderr, "\t%ud bytes @ %p\n", fprintf(stderr, "\t%lu bytes @ %p\n",
(unsigned int)next->size, next+1); (unsigned long)next->size, next+1);
/* The NULL means this will always return, even if the memory is /* The NULL means this will always return, even if the memory is
* corrupted. * corrupted.
*/ */
@ -3651,14 +3651,14 @@ int main(int argc, PNG_CONST char **argv)
"(warnings)" : "(no errors or warnings)") "(warnings)" : "(no errors or warnings)")
); );
printf("Allocated memory statistics (in bytes):\n" printf("Allocated memory statistics (in bytes):\n"
"\tread %u maximum single, %u peak, %u total\n" "\tread %lu maximum single, %lu peak, %lu total\n"
"\twrite %u maximum single, %u peak, %u total\n", "\twrite %lu maximum single, %lu peak, %lu total\n",
(unsigned int)pm.this.read_memory_pool.max_max, (unsigned long)pm.this.read_memory_pool.max_max,
(unsigned int)pm.this.read_memory_pool.max_limit, (unsigned long)pm.this.read_memory_pool.max_limit,
(unsigned int)pm.this.read_memory_pool.max_total, (unsigned long)pm.this.read_memory_pool.max_total,
(unsigned int)pm.this.write_memory_pool.max_max, (unsigned long)pm.this.write_memory_pool.max_max,
(unsigned int)pm.this.write_memory_pool.max_limit, (unsigned long)pm.this.write_memory_pool.max_limit,
(unsigned int)pm.this.write_memory_pool.max_total); (unsigned long)pm.this.write_memory_pool.max_total);
} }
/* Do this here to provoke memory corruption errors in memory not directly /* Do this here to provoke memory corruption errors in memory not directly