summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-20 09:07:17 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-20 09:07:17 +0000
commit3233d5b70ac5abe7e49ead30b2a5f2e0641465b8 (patch)
tree8c9f997a34983d30ae25a29901fcbd5dbb88e2da /string.c
parent9fb9dfecf8783de5fb61f4a5ab51237d848ff2d2 (diff)
merges r23568 from trunk into ruby_1_9_1.
-- * string.c (rb_str_each_char, rb_str_each_codepoint): string length must be long. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/string.c b/string.c
index 3026de17d..5b73d1b96 100644
--- a/string.c
+++ b/string.c
@@ -5710,7 +5710,7 @@ rb_str_each_byte(VALUE str)
static VALUE
rb_str_each_char(VALUE str)
{
- int i, len, n;
+ long i, len, n;
const char *ptr;
rb_encoding *enc;
@@ -5759,7 +5759,8 @@ rb_str_each_char(VALUE str)
static VALUE
rb_str_each_codepoint(VALUE str)
{
- int len, n;
+ long len;
+ int n;
unsigned int c;
const char *ptr, *end;
rb_encoding *enc;