From: Paul Eggert <eggert@cs.ucla.edu> Date: Tue, 6 Dec 2022 17:56:55 +0000 (-0800) Subject: fts: clarify ISSET X-Git-Tag: v1.0~1947 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=f2d32984b49d2baef8d4cba9692423f33bd96e7a;p=gnulib.git fts: clarify ISSET * lib/fts.c (ISSET): Refactor to clarify boolean usage. --- diff --git a/ChangeLog b/ChangeLog index 576db7231d..08436174d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-12-06 Paul Eggert <eggert@cs.ucla.edu> + + fts: clarify ISSET + * lib/fts.c (ISSET): Refactor to clarify boolean usage. + 2022-12-05 Bruno Haible <bruno@clisp.org> argp: Correct documentation. diff --git a/lib/fts.c b/lib/fts.c index 5811f6ea20..8d2a5d2d90 100644 --- a/lib/fts.c +++ b/lib/fts.c @@ -235,7 +235,7 @@ static int fts_safe_changedir (FTS *, FTSENT *, int, const char *) #define STREQ(a, b) (strcmp (a, b) == 0) #define CLR(opt) (sp->fts_options &= ~(opt)) -#define ISSET(opt) (sp->fts_options & (opt)) +#define ISSET(opt) ((sp->fts_options & (opt)) != 0) #define SET(opt) (sp->fts_options |= (opt)) /* FIXME: FTS_NOCHDIR is now misnamed.