Skip to content

Commit

Permalink
silence benign warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Feb 27, 2024
1 parent 2badc41 commit d1f70c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/ares__threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d1f70c6

Please sign in to comment.