From 196e6244712261032d67b98a3fd2c9e271f4a64e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 12 Feb 2025 22:36:27 +0100 Subject: [PATCH] timediff: fix comment for curlx_mstotv() The max value when explaining the math was wrong. Closes #16310 --- lib/timediff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timediff.c b/lib/timediff.c index d0824d1448..ebb733f987 100644 --- a/lib/timediff.c +++ b/lib/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 */