fix 64-bit build
Reported by: Robert Noland
This commit is contained in:
parent
6ba1ccc0f2
commit
d55ebfbd4e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=206846
@ -328,9 +328,11 @@ pr_u64(uint64_t *pd, int width)
|
|||||||
#else
|
#else
|
||||||
#define U64_FMT "llu"
|
#define U64_FMT "llu"
|
||||||
#endif
|
#endif
|
||||||
uint64_t d;
|
uint64_t u;
|
||||||
|
unsigned long long d;
|
||||||
|
|
||||||
bcopy (pd, &d, sizeof(d));
|
bcopy (pd, &u, sizeof(u));
|
||||||
|
d = u;
|
||||||
return (width > 0) ?
|
return (width > 0) ?
|
||||||
printf("%*" U64_FMT " ", width, d) :
|
printf("%*" U64_FMT " ", width, d) :
|
||||||
snprintf(NULL, 0, "%" U64_FMT, d) ;
|
snprintf(NULL, 0, "%" U64_FMT, d) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user