mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
Enable support for printing 8-byte integers. For some reason, most of the
code for this was present, but disabled. This is required for POSIX compliance on platforms with 8-byte longs. Obtained-From: NetBSD PR: 238586 Reported-By: Mohamed Akram <mohd.akram@outlook.com> MFC after: 2 weeks
This commit is contained in:
parent
4d779448ad
commit
37e3f5b23b
|
@ -123,8 +123,8 @@ print(PR *pr, u_char *bp)
|
|||
double f8;
|
||||
float f4;
|
||||
int16_t s2;
|
||||
int8_t s8;
|
||||
int32_t s4;
|
||||
int64_t s8;
|
||||
u_int16_t u2;
|
||||
u_int32_t u4;
|
||||
u_int64_t u8;
|
||||
|
|
|
@ -303,6 +303,9 @@ isint: cs[2] = '\0';
|
|||
case 2:
|
||||
pr->bcnt = 2;
|
||||
break;
|
||||
case 8:
|
||||
pr->bcnt = 8;
|
||||
break;
|
||||
default:
|
||||
p1[1] = '\0';
|
||||
badcnt(p1);
|
||||
|
|
Loading…
Reference in a new issue