From 7973baacea1ad22f235f64642af71d6791e763b3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 12 Aug 2017 15:34:59 +0200 Subject: bagder/Curl_tvdiff_us: fix the math Regression since adef394ac5 (released in 7.55.0) Reported-by: Han Qiao Fixes #1769 Closes #1771 --- lib/timeval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/timeval.c') diff --git a/lib/timeval.c b/lib/timeval.c index 69a8fb1fc..d7207b3a2 100644 --- a/lib/timeval.c +++ b/lib/timeval.c @@ -158,5 +158,5 @@ time_t Curl_tvdiff_us(struct curltime newer, struct curltime older) return 0x7fffffffffffffffLL; #endif return (newer.tv_sec-older.tv_sec)*1000000+ - (time_t)(newer.tv_usec-older.tv_usec); + (int)(newer.tv_usec-older.tv_usec); } -- cgit v1.2.1