summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-01 09:37:04 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-01 09:37:04 +0000
commit0ca24ab21d507f4fd3130874e3b0c2902e72cf90 (patch)
treec0b7b1a68dc14796b2acae22381739f6c41a561e
parent73dae42f511b359a1c649b253a3558cc129db91e (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--ChangeLog5
-rw-r--r--string.c2
-rw-r--r--version.h8
3 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 54b21ed857..f04a4f35b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/string.c b/string.c
index 5c88353e75..aa3029adbd 100644
--- a/string.c
+++ b/string.c
@@ -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));
diff --git a/version.h b/version.h
index 9a4fb851e4..d05f4da128 100644
--- a/version.h
+++ b/version.h
@@ -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"