diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-07-22 10:37:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-07-22 10:37:27 +0000 |
commit | a1530c751e6c484b6217565f3db2b0614735710c (patch) | |
tree | bfb9cae2410306cc39845fa836c44f546034290b /regex.c | |
parent | 86307f52ee1b3c5aa76e2fd6ee118e681dd76905 (diff) |
backtrace may be Qnil
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2746,6 +2746,9 @@ re_compile_fastmap(bufp) } /* Don't return; check the alternative paths so we can set can_be_null if appropriate. */ + if ((enum regexpcode)p[-1] == anychar_repeat) { + continue; + } break; case wordchar: @@ -2852,7 +2855,7 @@ re_compile_fastmap(bufp) } { unsigned short size; - unsigned long c, beg, end; + unsigned long c, beg; p += p[-1] + 2; size = EXTRACT_UNSIGNED(&p[-2]); @@ -3539,7 +3542,6 @@ re_match(bufp, string_arg, size, pos, regs) } EXTRACT_NUMBER_AND_INCR(mcnt, p); STORE_NUMBER(p+mcnt, stackp - stackb); - printf("%d\n", stackp - stackb); continue; case stop_nowidth: |