From 619450c2d76fbd745268a2afb8c5102d73545f2a Mon Sep 17 00:00:00 2001 From: shyouhei Date: Thu, 19 Feb 2009 09:02:43 +0000 Subject: merge revision(s) 20581: * pack.c (pack_pack): fixed odd act of 'm*', 'M*', and 'P*'. just ignores '*' in these cases. [ruby-dev:37289] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@22450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- pack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pack.c') diff --git a/pack.c b/pack.c index d0fdd75cd5..7a04673309 100644 --- a/pack.c +++ b/pack.c @@ -494,7 +494,9 @@ pack_pack(ary, fmt) } } 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)) { -- cgit v1.2.3