This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use proper print formatter in main function in fixincl.c


This patch is wrong for multiple reasons (the %d you're changing is for an 
int argument, so is correct as-is, and %lu is not portable for size_t, so 
since we may not be able to assume C99 %zu on the host you'd need to cast 
the ttl_data_size argument explicitly to unsigned long int to use %lu for 
it).

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]