Do not incorrectly warn when printing a quad_t using "%qd" on 64-bit platforms.

This commit is contained in:
David E. O'Brien 2012-05-22 18:18:06 +00:00
parent e30345e790
commit 08c5bca9c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235797
1 changed files with 4 additions and 0 deletions

View File

@ -287,7 +287,11 @@ static const format_length_info printf_length_specs[] =
{
{ "h", FMT_LEN_h, STD_C89, "hh", FMT_LEN_hh, STD_C99 },
{ "l", FMT_LEN_l, STD_C89, "ll", FMT_LEN_ll, STD_C9L },
#ifdef __LP64__
{ "q", FMT_LEN_l, STD_EXT, NULL, 0, 0 },
#else
{ "q", FMT_LEN_ll, STD_EXT, NULL, 0, 0 },
#endif
{ "L", FMT_LEN_L, STD_C89, NULL, 0, 0 },
{ "z", FMT_LEN_z, STD_C99, NULL, 0, 0 },
{ "Z", FMT_LEN_z, STD_EXT, NULL, 0, 0 },