summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-20 15:44:54 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-20 15:44:54 +0000
commitbde7125880217dc322cf9b82f9e71906256500d6 (patch)
tree522856b14c7f46ddbdbe7eb9137e41094310c4f2 /regexec.c
parentc58a4a50326dd56b4cc81fd8379712a6058f3fb3 (diff)
* parse.y (parser_yylex): update paren_nest for brackets [].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 2c082de..e9f6a2b 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 {