1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* regex.c (re_compile_fastmap): skip begpos.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2002-02-16 00:58:51 +00:00
parent 1e5d404935
commit beb24c5888
2 changed files with 5 additions and 1 deletions

View file

@ -59,6 +59,10 @@ Mon Feb 11 04:25:54 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
* variable.c (rb_cvar_singleton): removed.
Mon Feb 11 00:10:41 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* regex.c (re_compile_fastmap): skip begpos.
Sun Feb 10 16:52:53 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* ruby.c (load_file): avoid SEGV on '#' only input.

View file

@ -2782,6 +2782,7 @@ re_compile_fastmap(bufp)
case begline:
case begbuf:
case begpos:
case endbuf:
case endbuf2:
case wordbound:
@ -3049,7 +3050,6 @@ re_compile_fastmap(bufp)
}
break;
case begpos:
case unused: /* pacify gcc -Wall */
break;
}