diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-08-12 15:34:59 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-08-12 17:25:50 +0200 |
commit | 7973baacea1ad22f235f64642af71d6791e763b3 (patch) | |
tree | 9cb9df6709321a42cf7daaee0f4278e7fb8d5939 | |
parent | 7c711996a86587d76fe8c0dcc24d16b6c947b288 (diff) |
bagder/Curl_tvdiff_us: fix the math
Regression since adef394ac5 (released in 7.55.0)
Reported-by: Han Qiao
Fixes #1769
Closes #1771
-rw-r--r-- | lib/timeval.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |