From a34060b8ba3983da646f31bf07ece5c8f17eb075 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 6 Jan 2013 20:01:28 -0700 Subject: [PATCH] regcomp.c: Silence compiler warning One of our smoke compilers is not smart enough to know that the remainder when dividing by two can only be a 0 or a 1. --- regcomp.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/regcomp.c b/regcomp.c index 24d5561..75bb6a2 100644 --- a/regcomp.c +++ b/regcomp.c @@ -11724,8 +11724,9 @@ parseit: _invlist_union_maybe_complement_2nd( cp_list, PL_XPosix_ptrs[classnum], - namedclass % 2, /* Complement if odd - (NHORIZWS, NVERTWS) */ + cBOOL(namedclass % 2), /* Complement if odd + (NHORIZWS, NVERTWS) + */ &cp_list); } } @@ -11739,7 +11740,8 @@ parseit: _invlist_union_maybe_complement_2nd( posixes, PL_ASCII, - namedclass % 2, /* Complement if odd (NASCII) */ + cBOOL(namedclass % 2), /* Complement if odd + (NASCII) */ &posixes); } else { /* Garden variety class */ -- 2.7.4