summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-25 02:50:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-25 02:50:05 +0000
commit68e111176ffb1d3f88e5605a5e3eeb8c200cce13 (patch)
tree5a83c1a2b17672ed8321f859534a9b9a926188d3
parent618445576faa94fcd6d3957ea3fb59f6372b64ba (diff)
* string.c (rb_str_inspect): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--string.c2
-rw-r--r--version.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/string.c b/string.c
index f04802f3f7..109edd36ba 100644
--- a/string.c
+++ b/string.c
@@ -4101,7 +4101,7 @@ rb_str_inspect(VALUE str)
if (p > prev) str_buf_cat(result, prev, p - prev);
n = rb_enc_mbminlen(enc);
if (pend < p + n)
- n = pend - p;
+ n = (int)(pend - p);
while (n--) {
snprintf(buf, CHAR_ESC_LEN, "\\x%02X", *p & 0377);
str_buf_cat(result, buf, strlen(buf));
diff --git a/version.h b/version.h
index f3abd1963b..3ccf5ff042 100644
--- a/version.h
+++ b/version.h
@@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.2"
-#define RUBY_RELEASE_DATE "2010-01-24"
+#define RUBY_RELEASE_DATE "2010-01-25"
#define RUBY_PATCHLEVEL -1
#define RUBY_BRANCH_NAME "trunk"
@@ -8,7 +8,7 @@
#define RUBY_VERSION_TEENY 1
#define RUBY_RELEASE_YEAR 2010
#define RUBY_RELEASE_MONTH 1
-#define RUBY_RELEASE_DAY 24
+#define RUBY_RELEASE_DAY 25
#include "ruby/version.h"