summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-03 08:48:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-03 08:48:32 +0000
commit41bb73b28a82a957464745e6111b3923e00cd0ac (patch)
tree23e413a9a0706f7fee33e2262768a4c8d386ef20 /re.c
parent467035750e83a2d532bd8c2c5fb9fd78c1810132 (diff)
* re.c (rb_reg_initialize_m): unfotunate serious typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index 9b78681..830a227 100644
--- a/re.c
+++ b/re.c
@@ -1260,7 +1260,7 @@ rb_reg_initialize_m(argc, argv, self)
}
else {
s = StringValuePtr(argv[0]);
- len = RREGEXP(argv[0])->len;
+ len = RSTRING(argv[0])->len;
if (argc >= 2) {
if (FIXNUM_P(argv[1])) flags = FIX2INT(argv[1]);
else if (RTEST(argv[1])) flags = RE_OPTION_IGNORECASE;