From ee86b4a2550fd171e2087247d109c2aa91038a8f Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Tue, 24 Jun 2014 15:11:54 +0300 Subject: [PATCH] android/health: Fix possible overflow --- android/mcap-lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/mcap-lib.c b/android/mcap-lib.c index b04eaac4b..21db5b49f 100644 --- a/android/mcap-lib.c +++ b/android/mcap-lib.c @@ -2351,7 +2351,7 @@ void mcap_sync_stop(struct mcap_mcl *mcl) static uint64_t time_us(struct timespec *tv) { - return tv->tv_sec * 1000000 + tv->tv_nsec / 1000; + return tv->tv_sec * 1000000ll + tv->tv_nsec / 1000ll; } static int64_t bt2us(int bt) -- 2.47.3