1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

bagder/Curl_tvdiff_us: fix the math

Regression since adef394ac5 (released in 7.55.0)

Reported-by: Han Qiao
Fixes #1769
Closes #1771
This commit is contained in:
Daniel Stenberg 2017-08-12 15:34:59 +02:00
parent 7c711996a8
commit 7973baacea
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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);
}