summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-18 18:05:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-18 18:05:11 +0000
commitd85c44a7eaeb52d6903431efef004e2b3605a94f (patch)
tree79823d81475a9659b3c0e21988721c7d6b200d04 /regex.c
parent6423b6642048a20f4660340efefa67baec4ec1c9 (diff)
downloadruby-d85c44a7eaeb52d6903431efef004e2b3605a94f.tar.gz
ruby-d85c44a7eaeb52d6903431efef004e2b3605a94f.tar.xz
ruby-d85c44a7eaeb52d6903431efef004e2b3605a94f.zip
* struct.c (rb_struct_eql): should compare values with "eql?".
* range.c (range_check): <=> returns nil for invalid values; should check. * regex.c (re_compile_pattern): should not set RE_OPTIMIZE_ANCHOR, if anychar_repeat is enclosed by parentheses. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/regex.c b/regex.c
index 2e51365ec..698f3c715 100644
--- a/regex.c
+++ b/regex.c
@@ -2397,7 +2397,6 @@ re_compile_pattern(pattern, size, bufp)
/* set optimize flags */
laststart = bufp->buffer;
if (laststart != b) {
- if (*laststart == start_memory) laststart += 3;
if (*laststart == dummy_failure_jump) laststart += 3;
else if (*laststart == try_next) laststart += 3;
if (*laststart == anychar_repeat) {