mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
618445576f
commit
68e111176f
2 changed files with 3 additions and 3 deletions
2
string.c
2
string.c
|
@ -4101,7 +4101,7 @@ rb_str_inspect(VALUE str)
|
||||||
if (p > prev) str_buf_cat(result, prev, p - prev);
|
if (p > prev) str_buf_cat(result, prev, p - prev);
|
||||||
n = rb_enc_mbminlen(enc);
|
n = rb_enc_mbminlen(enc);
|
||||||
if (pend < p + n)
|
if (pend < p + n)
|
||||||
n = pend - p;
|
n = (int)(pend - p);
|
||||||
while (n--) {
|
while (n--) {
|
||||||
snprintf(buf, CHAR_ESC_LEN, "\\x%02X", *p & 0377);
|
snprintf(buf, CHAR_ESC_LEN, "\\x%02X", *p & 0377);
|
||||||
str_buf_cat(result, buf, strlen(buf));
|
str_buf_cat(result, buf, strlen(buf));
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#define RUBY_VERSION "1.9.2"
|
#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_PATCHLEVEL -1
|
||||||
#define RUBY_BRANCH_NAME "trunk"
|
#define RUBY_BRANCH_NAME "trunk"
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
#define RUBY_VERSION_TEENY 1
|
#define RUBY_VERSION_TEENY 1
|
||||||
#define RUBY_RELEASE_YEAR 2010
|
#define RUBY_RELEASE_YEAR 2010
|
||||||
#define RUBY_RELEASE_MONTH 1
|
#define RUBY_RELEASE_MONTH 1
|
||||||
#define RUBY_RELEASE_DAY 24
|
#define RUBY_RELEASE_DAY 25
|
||||||
|
|
||||||
#include "ruby/version.h"
|
#include "ruby/version.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue