fix 64-bit build

Reported by:	Robert Noland
This commit is contained in:
luigi 2010-04-19 16:35:47 +00:00
parent 6758ecb23d
commit bb53438218

View File

@ -328,9 +328,11 @@ pr_u64(uint64_t *pd, int width)
#else
#define U64_FMT "llu"
#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) ?
printf("%*" U64_FMT " ", width, d) :
snprintf(NULL, 0, "%" U64_FMT, d) ;