[bootstrap-O1] change value type to avoid sprintf buffer size warning
Alexandre Oliva
aoliva@redhat.com
Thu Jan 5 21:00:00 GMT 2017
On Jan 5, 2017, Andreas Schwab <schwab@linux-m68k.org> wrote:
> On Jan 05 2017, Alexandre Oliva <aoliva@redhat.com> wrote:
>> - sprintf (xname, "<U%4x>", ((unsigned)((uintptr_t)(t) & 0xffff)));
>> + sprintf (xname, "<U%4hx>", ((unsigned short)((uintptr_t)(t) & 0xffff)));
> Please fix the spacing while you are at it.
Err... I sure would, if I knew what fix you had in mind. Care to share
your thoughts? Thanks,
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist|Red Hat Brasil GNU Toolchain Engineer
More information about the Gcc-patches
mailing list