mirror of
https://github.com/cesanta/slre.git
synced 2024-11-24 03:15:30 +00:00
Bit test fix in match_set()
This commit is contained in:
parent
ace9f34999
commit
521f750aa9
2
slre.c
2
slre.c
@ -166,7 +166,7 @@ static int match_set(const char *re, int re_len, const char *s,
|
||||
/* Support character range */
|
||||
if (re[len] != '-' && re[len + 1] == '-' && re[len + 2] != ']' &&
|
||||
re[len + 2] != '\0') {
|
||||
result = info->flags && SLRE_IGNORE_CASE ?
|
||||
result = info->flags & SLRE_IGNORE_CASE ?
|
||||
tolower(*s) >= tolower(re[len]) && tolower(*s) <= tolower(re[len + 2]) :
|
||||
*s >= re[len] && *s <= re[len + 2];
|
||||
len += 3;
|
||||
|
Loading…
Reference in New Issue
Block a user