summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-02-06 23:06:11 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-02-06 23:06:11 +0100
commit1e14dabc2d9771af24420b669ac43f16600d769c (patch)
tree952babd93b47a12c9022eaa63be7e2e8d94fba15 /src
parentd73c8b930b6c164a58621ae09a6cc727976e5657 (diff)
downloadMinedMap-1e14dabc2d9771af24420b669ac43f16600d769c.tar
MinedMap-1e14dabc2d9771af24420b669ac43f16600d769c.zip
Fix definition of timespec >= operator
Diffstat (limited to 'src')
-rw-r--r--src/MinedMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MinedMap.cpp b/src/MinedMap.cpp
index 0193bbc..b89f89d 100644
--- a/src/MinedMap.cpp
+++ b/src/MinedMap.cpp
@@ -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) {