diff options
Diffstat (limited to 'lib/libc/regex/regex2.h')
-rw-r--r-- | lib/libc/regex/regex2.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/regex/regex2.h b/lib/libc/regex/regex2.h index 5a609f4aea8..6fb9dcca27c 100644 --- a/lib/libc/regex/regex2.h +++ b/lib/libc/regex/regex2.h @@ -1,4 +1,4 @@ -/* $OpenBSD: regex2.h,v 1.11 2021/01/03 10:50:02 tb Exp $ */ +/* $OpenBSD: regex2.h,v 1.12 2021/01/03 17:07:58 tb Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 Henry Spencer. @@ -122,10 +122,10 @@ CHsub(cset *cs, char c) cs->hash -= c; } -static inline uch +static inline int CHIN(const cset *cs, char c) { - return cs->ptr[(uch)c] & cs->mask; + return (cs->ptr[(uch)c] & cs->mask) != 0; } /* |