From 4395f4b597d70aa396e525ccfff3977f453c4db1 Mon Sep 17 00:00:00 2001 From: "kurtis.heimerl" Date: Sat, 17 Dec 2011 00:03:24 +0000 Subject: Alexander's change. Fixes MTC bug by supporting 64bit processors in Timeval. Math was bad. git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2835 19bc5d8c-e614-43d4-8b26-e1612bc8e597 --- CommonLibs/Timeval.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CommonLibs') diff --git a/CommonLibs/Timeval.cpp b/CommonLibs/Timeval.cpp index 47eebc4..50ce05d 100644 --- a/CommonLibs/Timeval.cpp +++ b/CommonLibs/Timeval.cpp @@ -71,8 +71,8 @@ double Timeval::seconds() const long Timeval::delta(const Timeval& other) const { // 2^31 milliseconds is just over 4 years. - long deltaS = other.sec() - sec(); - long deltaUs = other.usec() - usec(); + int32_t deltaS = other.sec() - sec(); + int32_t deltaUs = other.usec() - usec(); return 1000*deltaS + deltaUs/1000; } -- cgit v1.2.3