* libc/stdio/nano-vfprintf_i.c (_printf_i): Use LONGINT when void* is
larger than an int.
This commit is contained in:
		| @@ -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> | 2014-11-20  Sebastian Huber  <sebastian.huber@embedded-brains.de> | ||||||
|  |  | ||||||
| 	* libc/sys/rtems/sys/syslimits.h (NGROUPS_MAX): Adjust value so | 	* libc/sys/rtems/sys/syslimits.h (NGROUPS_MAX): Adjust value so | ||||||
|   | |||||||
| @@ -150,8 +150,10 @@ _printf_i (struct _reent *data, struct _prt_data_t *pdata, FILE *fp, | |||||||
|        * defined manner.'' |        * defined manner.'' | ||||||
|        *	-- ANSI X3J11 |        *	-- ANSI X3J11 | ||||||
|        */ |        */ | ||||||
|       /* NOSTRICT.  */ |  | ||||||
|       pdata->flags |= HEXPREFIX; |       pdata->flags |= HEXPREFIX; | ||||||
|  |       if (sizeof (void*) > sizeof (int)) | ||||||
|  | 	pdata->flags |= LONGINT; | ||||||
|  |       /* NOSTRICT.  */ | ||||||
|     case 'x': |     case 'x': | ||||||
|       pdata->l_buf[2] = 'x'; |       pdata->l_buf[2] = 'x'; | ||||||
|       xdigs = "0123456789abcdef"; |       xdigs = "0123456789abcdef"; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user