mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
fix 64-bit build
Reported by: Robert Noland
This commit is contained in:
parent
6ba1ccc0f2
commit
d55ebfbd4e
1 changed files with 4 additions and 2 deletions
|
|
@ -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) ;
|
||||
|
|
|
|||
Loading…
Reference in a new issue