mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-05 01:24:53 +01:00
Fix definition of timespec >= operator
This commit is contained in:
parent
d73c8b930b
commit
1e14dabc2d
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ static inline bool operator>(const struct timespec &t1, const struct timespec &t
|
|||
}
|
||||
|
||||
static inline bool operator>=(const struct timespec &t1, const struct timespec &t2) {
|
||||
return (t1.tv_sec >= t2.tv_sec || (t1.tv_sec == t2.tv_sec && t1.tv_nsec >= t2.tv_nsec));
|
||||
return (t1.tv_sec > t2.tv_sec || (t1.tv_sec == t2.tv_sec && t1.tv_nsec >= t2.tv_nsec));
|
||||
}
|
||||
|
||||
static inline bool operator==(const struct timespec &t1, const struct timespec &t2) {
|
||||
|
|
Loading…
Add table
Reference in a new issue