summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-12 14:53:16 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-12 14:53:16 +0000
commit520f724895ac15f410e9b4c0bf86eef33f91b26c (patch)
treefdb898962871717b948f67d7e58bfc42bbc507bd /pack.c
parent87f30b70a623dc2c8b31d03c32299d6a46e3946e (diff)
merges r20564 from trunk into ruby_1_9_1.
* pack.c (pack_pack): 'u0' is not special differently from 'm0'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack.c b/pack.c
index 119a83b1ae..ae0218afce 100644
--- a/pack.c
+++ b/pack.c
@@ -903,7 +903,7 @@ pack_pack(VALUE ary, VALUE fmt)
ptr = RSTRING_PTR(from);
plen = RSTRING_LEN(from);
- if (len == 0) {
+ if (len == 0 && type == 'm') {
encodes(res, ptr, plen, type, 0);
ptr += plen;
break;