Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use off_t in for constants used in iprop log seeks
On 32-bit architectures with _FILE_OFFSET_BITS=64, sizeof(off_t) > sizeof(size_t) . LOG_HEADER_SZ was #define'd as an expression of type size_t, so in order to get the sign extension right we need -(off_t)LOG_HEADER_SZ instead of (off_t)(-LOG_HEADER_SZ). However, we can just define the *_SZ macros to cast to off_t, then we don't need to worry about negation. Fixes Debian bug #822749, PR 175. Signed-off-by (and updated by): Nicolas Williams <nico@twosigma.com>
- Loading branch information