summaryrefslogtreecommitdiffhomepage
path: root/compat/timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/timer.cpp')
-rw-r--r--compat/timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/timer.cpp b/compat/timer.cpp
index d8ea242d..84ea44e6 100644
--- a/compat/timer.cpp
+++ b/compat/timer.cpp
@@ -28,7 +28,7 @@ struct timespec Timer::gettime_() const
struct timespec ts; // NOLINT
gettime(&ts);
unsigned long long a = ts.tv_sec, b = state.tv_sec;
- unsigned c = ts.tv_nsec, d = state.tv_nsec;
+ int c = ts.tv_nsec, d = state.tv_nsec;
return { (time_t)(a - b), (long)(c - d) };
}