>From daa5c31db0ba85578ed22cb9f133de2b20279afd Mon Sep 17 00:00:00 2001 From: Paul Eggert
Date: Sat, 22 Apr 2017 18:48:39 -0700 Subject: [PATCH] poll: improve fast check for out-of-range NFD * lib/poll.c: Do not include intprops.h. (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2. --- ChangeLog | 4 ++++ lib/poll.c | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index ad436a7..8a13acc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2017-04-22 Paul Eggert + poll: improve fast check for out-of-range NFD + * lib/poll.c: Do not include intprops.h. + (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2. + ftoastr: cite a newer paper * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016 instead of Loitsch 2010. diff --git a/lib/poll.c b/lib/poll.c index 69b3672..078b1ba 100644 --- a/lib/poll.c +++ b/lib/poll.c @@ -60,7 +60,6 @@ #include