aboutsummaryrefslogtreecommitdiffstats
path: root/regexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index 2c082de423..e9f6a2b995 100644
--- a/regexec.c
+++ b/regexec.c
@@ -1170,7 +1170,7 @@ code_is_in_cclass_node(void* node, OnigCodePoint code, int enclen)
unsigned int in_cc;
CClassNode* cc = (CClassNode* )node;
- if (enclen == 1) {
+ if (enclen == 1 && code < SINGLE_BYTE_SIZE) {
in_cc = BITSET_AT(cc->bs, code);
}
else {