diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-19 09:01:35 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-19 09:01:35 +0000 |
commit | 448ecd59b69a2c777ba54b4594babc53b1e43cd9 (patch) | |
tree | 11d3ea8cf4a10337f33c71969046b2ccd1de6184 /pack.c | |
parent | 4bd998190529689b85a659c15ad7190cb5d44dfc (diff) | |
download | ruby-448ecd59b69a2c777ba54b4594babc53b1e43cd9.tar.gz ruby-448ecd59b69a2c777ba54b4594babc53b1e43cd9.tar.xz ruby-448ecd59b69a2c777ba54b4594babc53b1e43cd9.zip |
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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@22448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r-- | pack.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)) { |