diff options
author | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-28 08:05:23 +0000 |
---|---|---|
committer | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-28 08:05:23 +0000 |
commit | 0d0ae37e508788ea52e2e2cf477877ee58fa79dd (patch) | |
tree | 300e3a58cac901929c00518abaf11d7d3caaeb50 /string.c | |
parent | 3685a85b3d60bb6bdee18b3634ec8e264d8031c5 (diff) | |
download | ruby-0d0ae37e508788ea52e2e2cf477877ee58fa79dd.tar.gz |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |