From 37df03ce52ce53710e1513387648763f8a744154 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 23 Jun 2019 23:19:34 +0300 Subject: xz: Fix some of the warnings from -Wsign-conversion. --- src/xz/mytime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xz/mytime.c') diff --git a/src/xz/mytime.c b/src/xz/mytime.c index 4be184fd..95138840 100644 --- a/src/xz/mytime.c +++ b/src/xz/mytime.c @@ -39,11 +39,11 @@ mytime_now(void) while (clock_gettime(clk_id, &tv)) clk_id = CLOCK_REALTIME; - return (uint64_t)(tv.tv_sec) * UINT64_C(1000) + tv.tv_nsec / 1000000; + return (uint64_t)tv.tv_sec * 1000 + (uint64_t)(tv.tv_nsec / 1000000); #else struct timeval tv; gettimeofday(&tv, NULL); - return (uint64_t)(tv.tv_sec) * UINT64_C(1000) + tv.tv_usec / 1000; + return (uint64_t)tv.tv_sec * 1000 + (uint64_t)(tv.tv_usec / 1000); #endif } -- cgit v1.2.3