* libc/stdio/nano-vfprintf_i.c (_printf_i): Use LONGINT when void* is

larger than an int.
This commit is contained in:
Corinna Vinschen 2014-11-20 14:05:28 +00:00
parent 308186a134
commit 556b13a0c2
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-11-20 Peter A. Bigot <pab@pabigot.com>
* libc/stdio/nano-vfprintf_i.c (_printf_i): Use LONGINT when void* is
larger than an int.
2014-11-20 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/sys/rtems/sys/syslimits.h (NGROUPS_MAX): Adjust value so

View File

@ -150,8 +150,10 @@ _printf_i (struct _reent *data, struct _prt_data_t *pdata, FILE *fp,
* defined manner.''
* -- ANSI X3J11
*/
/* NOSTRICT. */
pdata->flags |= HEXPREFIX;
if (sizeof (void*) > sizeof (int))
pdata->flags |= LONGINT;
/* NOSTRICT. */
case 'x':
pdata->l_buf[2] = 'x';
xdigs = "0123456789abcdef";