summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-28 08:05:23 +0000
committermichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-28 08:05:23 +0000
commit0d0ae37e508788ea52e2e2cf477877ee58fa79dd (patch)
tree300e3a58cac901929c00518abaf11d7d3caaeb50 /re.c
parent3685a85b3d60bb6bdee18b3634ec8e264d8031c5 (diff)
Int vs Long cleanup #3 (ruby-core:352)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/re.c b/re.c
index 87c06d6..60f8140 100644
--- a/re.c
+++ b/re.c
@@ -782,7 +782,7 @@ rb_reg_nth_match(nth, match)
VALUE match;
{
VALUE str;
- int start, end, len;
+ long start, end, len;
if (NIL_P(match)) return Qnil;
if (nth >= RMATCH(match)->regs->num_regs) {
@@ -1094,7 +1094,7 @@ VALUE
rb_reg_match(re, str)
VALUE re, str;
{
- int start;
+ long start;
if (NIL_P(str)) {
rb_backref_set(Qnil);
@@ -1105,14 +1105,14 @@ rb_reg_match(re, str)
if (start < 0) {
return Qnil;
}
- return INT2FIX(start);
+ return LONG2FIX(start);
}
VALUE
rb_reg_match2(re)
VALUE re;
{
- int start;
+ long start;
VALUE line = rb_lastline_get();
if (TYPE(line) != T_STRING) {
@@ -1124,7 +1124,7 @@ rb_reg_match2(re)
if (start < 0) {
return Qnil;
}
- return INT2FIX(start);
+ return LONG2FIX(start);
}
static VALUE