Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-11-20 17:05:28 +0300
committerCorinna Vinschen <corinna@vinschen.de>2014-11-20 17:05:28 +0300
commit556b13a0c2a94c35ddcb373232d31d99e9a661d7 (patch)
tree228332d0570017c8a952691e9afc274f20df3cd3 /newlib/libc
parent308186a1340cf76436301ee183d8593432f76161 (diff)
* libc/stdio/nano-vfprintf_i.c (_printf_i): Use LONGINT when void* is
larger than an int.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/stdio/nano-vfprintf_i.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/newlib/libc/stdio/nano-vfprintf_i.c b/newlib/libc/stdio/nano-vfprintf_i.c
index b75a142da..46945b34a 100644
--- a/newlib/libc/stdio/nano-vfprintf_i.c
+++ b/newlib/libc/stdio/nano-vfprintf_i.c
@@ -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";