1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* string.c (rb_str_each_char, rb_str_each_codepoint): string

length must be long.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-05-25 18:38:46 +00:00
parent 4bc66b71f3
commit 5ac1389aea
3 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Tue May 26 03:38:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (rb_str_each_char, rb_str_each_codepoint): string
length must be long.
Mon May 25 13:27:32 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
* lib/mkmf.rb: dont use gsub! method for frozen string.

View file

@ -5933,7 +5933,7 @@ static VALUE
rb_str_each_char(VALUE str)
{
VALUE orig = str;
int i, len, n;
long i, len, n;
const char *ptr;
rb_encoding *enc;
@ -5993,7 +5993,8 @@ static VALUE
rb_str_each_codepoint(VALUE str)
{
VALUE orig = str;
int len, n;
long len;
int n;
unsigned int c;
const char *ptr, *end;
rb_encoding *enc;

View file

@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.2"
#define RUBY_RELEASE_DATE "2009-05-25"
#define RUBY_RELEASE_DATE "2009-05-26"
#define RUBY_PATCHLEVEL -1
#define RUBY_BRANCH_NAME "trunk"
@ -8,7 +8,7 @@
#define RUBY_VERSION_TEENY 1
#define RUBY_RELEASE_YEAR 2009
#define RUBY_RELEASE_MONTH 5
#define RUBY_RELEASE_DAY 25
#define RUBY_RELEASE_DAY 26
#include "ruby/version.h"