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