summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-09 18:04:08 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-09 18:04:08 +0000
commit178a2f7064af173ed2b223b9a1c70e77dd016e49 (patch)
tree16c6920c4e3a7a6abb9144fdd1c91ee166a7bbba /re.c
parent529bc6166cb3e6083678c278d8a871e803420804 (diff)
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/re.c b/re.c
index 1561c58e31..c666467992 100644
--- a/re.c
+++ b/re.c
@@ -722,7 +722,7 @@ reg_match(re, str)
str = str_to_str(str);
start = reg_search(re, str, 0, 0);
if (start >= 0) return INT2FIX(start);
- return Qnil;
+ return FALSE;
}
VALUE
@@ -735,7 +735,7 @@ reg_match2(re)
if (TYPE(line) != T_STRING) return Qnil;
start = reg_search(re, line, 0, 0);
if (start >= 0) return INT2FIX(start);
- return Qnil;
+ return FALSE;
}
static VALUE