From 203d7b7a6735d7d8a0ff3e91f162196b57891862 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 29 Feb 2016 11:51:23 +0100 Subject: [PATCH] Fixed long long value in timing library to actually be long long. --- lib/timing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timing.cpp b/lib/timing.cpp index 1d760ab1..f2e02c1c 100644 --- a/lib/timing.cpp +++ b/lib/timing.cpp @@ -65,7 +65,7 @@ void Util::sleep(int ms) { long long Util::getNTP() { struct timespec t; clock_gettime(CLOCK_REALTIME, &t); - return ((((long long int)t.tv_sec) + 2208988800) << 32) + (t.tv_nsec * 4.2949); + return ((((long long int)t.tv_sec) + 2208988800ll) << 32) + (t.tv_nsec * 4.2949); } /// Gets the current time in milliseconds.