Fix an annoying pointer/int cast warning that shows up on 64 bit systems.
Approved by: re
This commit is contained in:
parent
a1ec53930b
commit
ae259a3d16
@ -110,7 +110,7 @@ struct direct {
|
||||
*
|
||||
*/
|
||||
#define DIRECTSIZ(namlen) \
|
||||
(((int)&((struct direct *)0)->d_name + \
|
||||
(((uintptr_t)&((struct direct *)0)->d_name + \
|
||||
((namlen)+1)*sizeof(((struct direct *)0)->d_name[0]) + 3) & ~3)
|
||||
#if (BYTE_ORDER == LITTLE_ENDIAN)
|
||||
#define DIRSIZ(oldfmt, dp) \
|
||||
|
Loading…
Reference in New Issue
Block a user