mirror of
https://github.com/curl/curl.git
synced 2026-07-22 22:47:17 +03:00
timediff: fix comment for curlx_mstotv()
The max value when explaining the math was wrong. Closes #16310
This commit is contained in:
parent
90b72607fa
commit
196e624471
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue