From 0d0ae37e508788ea52e2e2cf477877ee58fa79dd Mon Sep 17 00:00:00 2001 From: michal Date: Wed, 28 Aug 2002 08:05:23 +0000 Subject: 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 --- re.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 're.c') diff --git a/re.c b/re.c index 87c06d675d..60f8140616 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 -- cgit v1.2.3