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

ruby-changes:9136

From: yugui <ko1@a...>
Date: Fri, 12 Dec 2008 23:54:20 +0900 (JST)
Subject: [ruby-changes:9136] Ruby:r20673 (ruby_1_9_1): merges r20581 from trunk into ruby_1_9_1.

yugui	2008-12-12 23:53:58 +0900 (Fri, 12 Dec 2008)

  New Revision: 20673

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

  Log:
    merges r20581 from trunk into ruby_1_9_1.
    * pack.c (pack_pack): fixed odd act of 'm*', 'M*', and 'P*'.
      just ignores '*' in these cases.
      [ruby-dev:37289]

  Modified files:
    branches/ruby_1_9_1/ChangeLog
    branches/ruby_1_9_1/pack.c

Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 20672)
+++ ruby_1_9_1/ChangeLog	(revision 20673)
@@ -1,3 +1,9 @@
+Mon Dec  8 23:34:18 2008  Yuki Sonoda (Yugui)  <yugui@y...>
+
+	* pack.c (pack_pack): fixed odd act of 'm*', 'M*', and 'P*'.
+	  just ignores '*' in these cases.
+	  [ruby-dev:37289]
+
 Mon Dec  8 18:31:41 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* pack.c (pack_pack): fixed length for odd length string.
Index: ruby_1_9_1/pack.c
===================================================================
--- ruby_1_9_1/pack.c	(revision 20672)
+++ ruby_1_9_1/pack.c	(revision 20673)
@@ -491,7 +491,9 @@
 	    }
 	}
 	if (*p == '*') {	/* set data length */
-	    len = strchr("@Xxu", type) ? 0 : items;
+	    len = strchr("@Xxu", type) ? 0
+                : strchr("PMm", type) ? 1
+                : items;
 	    p++;
 	}
 	else if (ISDIGIT(*p)) {

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

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