Skip to content

Commit

Permalink
Merge pull request #2 from GerHobbelt/master
Browse files Browse the repository at this point in the history
remove obnoxious compiler warning; this will declare VERY LONG timeou…
  • Loading branch information
oktonion authored Mar 15, 2021
2 parents fcbcf8a + 034d9bd commit c097e1c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pthread_delay_np.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,8 @@ pthread_delay_np (struct timespec *interval)
#pragma disable_message (124)
#endif

/*
* Most compilers will issue a warning 'comparison always 0'
* because the variable type is unsigned, but we need to keep this
* for some reason I can't recall now.
*/
if (0 > (wait_time = secs_in_millisecs + millisecs))
wait_time = secs_in_millisecs + millisecs;
if (0 > (int)wait_time)
{
return EINVAL;
}
Expand Down

0 comments on commit c097e1c

Please sign in to comment.