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

ruby-changes:8002

From: usa <ko1@a...>
Date: Wed, 24 Sep 2008 19:04:36 +0900 (JST)
Subject: [ruby-changes:8002] Ruby:r19526 (trunk): * string.c (rb_str_strip_bang): workaround for VC++8 x64.

usa	2008-09-24 19:04:20 +0900 (Wed, 24 Sep 2008)

  New Revision: 19526

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

  Log:
    * string.c (rb_str_strip_bang): workaround for VC++8 x64.

  Modified files:
    trunk/ChangeLog
    trunk/string.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19525)
+++ ChangeLog	(revision 19526)
@@ -1,3 +1,7 @@
+Wed Sep 24 19:01:45 2008  NAKAMURA Usaku  <usa@r...>
+
+	* string.c (rb_str_strip_bang): workaround for VC++8 x64.
+
 Wed Sep 24 17:44:44 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* complex.c (Init_Complex), rational.c (Init_Rational): undefines
Index: string.c
===================================================================
--- string.c	(revision 19525)
+++ string.c	(revision 19526)
@@ -5862,7 +5862,7 @@
 
     if (single_byte_optimizable(str)) {
 	/* remove trailing spaces or '\0's */
-	while (s < t && (t[-1] == '\0' || rb_enc_isspace(*(t-1), enc))) t--;
+	while (s < t && (*(t-1) == '\0' || rb_enc_isspace(*(t-1), enc))) t--;
     }
     else {
 	char *tp;

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

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