diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-12 14:53:16 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-12 14:53:16 +0000 |
| commit | 3587284ecc887d5d911f158972ca10b816771396 (patch) | |
| tree | fdb898962871717b948f67d7e58bfc42bbc507bd /pack.c | |
| parent | 631d5b519d367bf24662518dee7b41bf8dfddbba (diff) | |
merges r20564 from trunk into ruby_1_9_1.
* pack.c (pack_pack): 'u0' is not special differently from 'm0'.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
| -rw-r--r-- | pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
