timediff: fix comment for curlx_mstotv()

The max value when explaining the math was wrong.

Closes #16310
This commit is contained in:
Daniel Stenberg 2025-02-12 22:36:27 +01:00
parent 90b72607fa
commit 196e624471
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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 */