summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-17 07:11:22 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-17 07:11:22 +0000
commite83d532ff8b7d3c6eeaee3931d8b00df19c5f538 (patch)
treea2c90999001ebcb8fd2fd67ffb3d5911a8e98f81 /regex.c
parent154193050b7878e290f9f166279c18e01ef44ad6 (diff)
downloadruby-e83d532ff8b7d3c6eeaee3931d8b00df19c5f538.tar.gz
ruby-e83d532ff8b7d3c6eeaee3931d8b00df19c5f538.tar.xz
ruby-e83d532ff8b7d3c6eeaee3931d8b00df19c5f538.zip
2000-02-17
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regex.c b/regex.c
index 21aa90096..0ee2b066d 100644
--- a/regex.c
+++ b/regex.c
@@ -3721,12 +3721,12 @@ re_match(bufp, string_arg, size, pos, regs)
cc = c = (unsigned char)translate[c];
not = is_in_list(c, p);
+ if (!not && cc != c) {
+ part = not = is_in_list(cc, p);
+ }
if (*(p - 1) == (unsigned char)charset_not) {
not = !not;
}
- else if (!not && cc != c) {
- part = not = is_in_list(cc, p);
- }
if (!not) goto fail;
p += 1 + *p + 2 + EXTRACT_UNSIGNED(&p[1 + *p])*8;