summaryrefslogtreecommitdiff
path: root/string.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 /string.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 'string.c')
-rw-r--r--string.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/string.c b/string.c
index 4f423da..2ef8de5 100644
--- a/string.c
+++ b/string.c
@@ -1016,7 +1016,7 @@ rb_str_succ(orig)
VALUE str;
char *sbeg, *s;
int c = -1;
- int n = 0;
+ long n = 0;
str = rb_str_new5(orig,RSTRING(orig)->ptr, RSTRING(orig)->len);
OBJ_INFECT(str, orig);
@@ -1216,7 +1216,7 @@ rb_str_subpat_set(str, re, nth, val)
VALUE val;
{
VALUE match;
- int start, end, len;
+ long start, end, len;
if (rb_reg_search(re, str, 0, 0) < 0) {
rb_raise(rb_eIndexError, "regexp not matched");
@@ -2999,7 +2999,7 @@ rb_str_sum(argc, argv, str)
VALUE str;
{
VALUE vbits;
- int bits;
+ int bits;
char *p, *pend;
if (rb_scan_args(argc, argv, "01", &vbits) == 0) {