From 448caab0df07761ca72cb56d616984a10213536c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 17 Feb 2025 14:38:23 +0100 Subject: [PATCH] timediff: remove unnecessary double typecast Closes #16367 --- lib/timediff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timediff.c b/lib/timediff.c index ebb733f987..a90da961ab 100644 --- a/lib/timediff.c +++ b/lib/timediff.c @@ -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); } -- 2.47.2