Fix an annoying pointer/int cast warning that shows up on 64 bit systems.

Approved by:  re
This commit is contained in:
Peter Wemm 2007-07-02 01:31:43 +00:00
parent a1ec53930b
commit ae259a3d16

View File

@ -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) \