diff options
| author | dartraiden <wowemuh@gmail.com> | 2025-04-21 09:33:29 +0300 |
|---|---|---|
| committer | dartraiden <wowemuh@gmail.com> | 2025-04-21 09:50:38 +0300 |
| commit | cf6ba06cd445f1f4554701637d5bab581acfba98 (patch) | |
| tree | 0d9b618df1c8f888cb37221be0590f4a677fe477 /libs/libcurl/src/timediff.c | |
| parent | 842ec200cd37ae05f2a9c56f2a4040088d2ac917 (diff) | |
libcurl: update to 8.13.0
Diffstat (limited to 'libs/libcurl/src/timediff.c')
| -rw-r--r-- | libs/libcurl/src/timediff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/libcurl/src/timediff.c b/libs/libcurl/src/timediff.c index a98d5782c1..641a15c404 100644 --- a/libs/libcurl/src/timediff.c +++ b/libs/libcurl/src/timediff.c @@ -44,7 +44,7 @@ struct timeval *curlx_mstotv(struct timeval *tv, timediff_t ms) if(ms > 0) {
timediff_t tv_sec = ms / 1000;
- timediff_t tv_usec = (ms % 1000) * 1000; /* max=999999 */
+ timediff_t tv_usec = (ms % 1000) * 1000; /* max=999000 */
#ifdef HAVE_SUSECONDS_T
#if TIMEDIFF_T_MAX > TIME_T_MAX
/* tv_sec overflow check in case time_t is signed */
@@ -84,5 +84,5 @@ struct timeval *curlx_mstotv(struct timeval *tv, timediff_t ms) */
timediff_t curlx_tvtoms(struct timeval *tv)
{
- return (tv->tv_sec*1000) + (timediff_t)(((double)tv->tv_usec)/1000.0);
+ return (tv->tv_sec*1000) + (timediff_t)(tv->tv_usec/1000);
}
|
