octet *_p = (octet *)(p); \
const cookie *_c = (c); \
STORE32(_p + 0, _c->k); \
- STORE32(_p + 4, ((_c->exp & ~MASK32) >> 16) >> 16); \
+ STORE32(_p + 4, ((_c->exp & ~(unsigned long)MASK32) >> 16) >> 16); \
STORE32(_p + 8, _c->exp); \
} while (0)
cookie *_c = (c); \
const octet *_p = (const octet *)(p); \
_c->k = LOAD32(_p + 0); \
- _c->exp = ((time_t)(((LOAD32(_p + 4) << 16) << 16) & ~MASK32) | \
+ _c->exp = ((time_t)(((LOAD32(_p + 4) << 16) << 16) & \
+ ~(unsigned long)MASK32) | \
(time_t)LOAD32(_p + 8)); \
} while (0)