Commit 168f5e44 authored by Maciej Lipinski's avatar Maciej Lipinski Committed by Adam Wujek

include/ppsi/pp-time: fix marking timestamp as invalid

Make sure two bits are used when marking timestamp as invalid
Signed-off-by: Maciej Lipinski's avatarMaciej Lipinski <maciej.lipinski@cern.ch>
parent 61f7d34d
......@@ -19,6 +19,7 @@ static inline int is_incorrect(const struct pp_time *t)
}
static inline void mark_incorrect(struct pp_time *t)
{
t->secs &= ~(0xc0LL << 56);
t->secs |= (0x8fLL << 56);
}
static inline void clear_time(struct pp_time *t)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment