From 9a75d99438479a0ae1109fc8ceef303329f2c132 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Fri, 8 Oct 2010 16:27:14 -0500 Subject: [PATCH] [devel] changed "(unsigned int)" to "(unsigned long)" typecasts in printf statements in pngvalid.c, and changed %ud to %lu. --- ANNOUNCE | 2 +- CHANGES | 2 +- pngvalid.c | 20 ++++++++++---------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index 53c0d9281..340f1f050 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -410,7 +410,7 @@ Version 1.5.0beta49 [October 8, 2010] Version 1.5.0beta50 [October 8, 2010] 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: (subscription required; visit diff --git a/CHANGES b/CHANGES index dbe691dff..4ebb96700 100644 --- a/CHANGES +++ b/CHANGES @@ -3048,7 +3048,7 @@ Version 1.5.0beta49 [October 8, 2010] Version 1.5.0beta50 [October 8, 2010] 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 (subscription required; visit diff --git a/pngvalid.c b/pngvalid.c index b0a42c9c7..462a463c3 100644 --- a/pngvalid.c +++ b/pngvalid.c @@ -821,8 +821,8 @@ store_pool_delete(png_store *ps, store_pool *pool) pool->list = next->next; next->next = NULL; - fprintf(stderr, "\t%ud bytes @ %p\n", - (unsigned int)next->size, next+1); + fprintf(stderr, "\t%lu bytes @ %p\n", + (unsigned long)next->size, next+1); /* The NULL means this will always return, even if the memory is * corrupted. */ @@ -3651,14 +3651,14 @@ int main(int argc, PNG_CONST char **argv) "(warnings)" : "(no errors or warnings)") ); printf("Allocated memory statistics (in bytes):\n" - "\tread %u maximum single, %u peak, %u total\n" - "\twrite %u maximum single, %u peak, %u total\n", - (unsigned int)pm.this.read_memory_pool.max_max, - (unsigned int)pm.this.read_memory_pool.max_limit, - (unsigned int)pm.this.read_memory_pool.max_total, - (unsigned int)pm.this.write_memory_pool.max_max, - (unsigned int)pm.this.write_memory_pool.max_limit, - (unsigned int)pm.this.write_memory_pool.max_total); + "\tread %lu maximum single, %lu peak, %lu total\n" + "\twrite %lu maximum single, %lu peak, %lu total\n", + (unsigned long)pm.this.read_memory_pool.max_max, + (unsigned long)pm.this.read_memory_pool.max_limit, + (unsigned long)pm.this.read_memory_pool.max_total, + (unsigned long)pm.this.write_memory_pool.max_max, + (unsigned long)pm.this.write_memory_pool.max_limit, + (unsigned long)pm.this.write_memory_pool.max_total); } /* Do this here to provoke memory corruption errors in memory not directly