silence benign warnings

pull/721/head
Brad House 9 months ago
parent 6a89286c7a
commit cbf6b0ecdf
  1. 4
      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) {

Loading…
Cancel
Save