From cbf6b0ecdf3e80987ef843f6d674eac42c948dfe Mon Sep 17 00:00:00 2001 From: Brad House Date: Mon, 26 Feb 2024 19:51:06 -0500 Subject: [PATCH] silence benign warnings --- src/lib/ares__threads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ares__threads.c b/src/lib/ares__threads.c index 028790ae..ecff3301 100644 --- a/src/lib/ares__threads.c +++ b/src/lib/ares__threads.c @@ -335,8 +335,8 @@ static void ares__timespec_timeout(struct timespec *ts, unsigned long add_ms) # error cannot determine current system time # endif - ts->tv_sec += add_ms / 1000; - ts->tv_nsec += (add_ms % 1000) * 1000000; + ts->tv_sec += (time_t)(add_ms / 1000); + ts->tv_nsec += (long)((add_ms % 1000) * 1000000); /* Normalize if needed */ if (ts->tv_nsec >= 1000000000) {