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:
parent
7c711996a8
commit
7973baacea
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user