From 1e14dabc2d9771af24420b669ac43f16600d769c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 6 Feb 2015 23:06:11 +0100 Subject: Fix definition of timespec >= operator --- src/MinedMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3