fix(lib): a null clock must have tv_nsec be 0 as well
This commit is contained in:
parent
636801770e
commit
ae35a36747
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ static inline TSClock clock_after(TSClock base, TSDuration duration) {
|
|||
}
|
||||
|
||||
static inline bool clock_is_null(TSClock self) {
|
||||
return !self.tv_sec;
|
||||
return !self.tv_sec && !self.tv_nsec;
|
||||
}
|
||||
|
||||
static inline bool clock_is_gt(TSClock self, TSClock other) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue