[前][次][番号順一覧][スレッド一覧]

ruby-changes:14557

From: nobu <ko1@a...>
Date: Mon, 25 Jan 2010 11:52:21 +0900 (JST)
Subject: [ruby-changes:14557] Ruby:r26396 (trunk): * string.c (rb_str_inspect): suppress a warning.

nobu	2010-01-25 11:50:05 +0900 (Mon, 25 Jan 2010)

  New Revision: 26396

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26396

  Log:
    * string.c (rb_str_inspect): suppress a warning.

  Modified files:
    trunk/string.c
    trunk/version.h

Index: string.c
===================================================================
--- string.c	(revision 26395)
+++ string.c	(revision 26396)
@@ -4101,7 +4101,7 @@
 	    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));
Index: version.h
===================================================================
--- version.h	(revision 26395)
+++ version.h	(revision 26396)
@@ -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"
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]