diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-01 09:37:04 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-01 09:37:04 +0000 |
commit | 0ca24ab21d507f4fd3130874e3b0c2902e72cf90 (patch) | |
tree | c0b7b1a68dc14796b2acae22381739f6c41a561e | |
parent | 73dae42f511b359a1c649b253a3558cc129db91e (diff) |
merges r30779 from trunk into ruby_1_9_2.
--
* string.c (str_utf8_nth): fixed a conditon of optimized lead
byte counting. [Bug #4366][ruby-dev:43170]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | string.c | 2 | ||||
-rw-r--r-- | version.h | 8 |
3 files changed, 10 insertions, 5 deletions
@@ -1,3 +1,8 @@ +Fri Feb 4 12:11:51 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * string.c (str_utf8_nth): fixed a conditon of optimized lead + byte counting. [Bug #4366][ruby-dev:43170] + Fri Feb 4 00:14:55 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> * ext/zlib/zlib.c (gzfile_reader_get_unused): no need to dup @@ -1487,7 +1487,7 @@ rb_str_offset(VALUE str, long pos) static char * str_utf8_nth(const char *p, const char *e, long nth) { - if ((int)SIZEOF_VALUE < e - p && (int)SIZEOF_VALUE * 2 < nth) { + if ((int)SIZEOF_VALUE * 2 < e - p && (int)SIZEOF_VALUE * 2 < nth) { const VALUE *s, *t; const VALUE lowbits = sizeof(VALUE) - 1; s = (const VALUE*)(~lowbits & ((VALUE)p + lowbits)); @@ -1,13 +1,13 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_PATCHLEVEL 188 +#define RUBY_PATCHLEVEL 189 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 #define RUBY_RELEASE_YEAR 2011 -#define RUBY_RELEASE_MONTH 3 -#define RUBY_RELEASE_DAY 28 -#define RUBY_RELEASE_DATE "2011-03-28" +#define RUBY_RELEASE_MONTH 5 +#define RUBY_RELEASE_DAY 1 +#define RUBY_RELEASE_DATE "2011-05-01" #include "ruby/version.h" |