diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-06 08:55:57 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-06 08:55:57 +0000 |
| commit | ca3608096d23f4cd76ce3b8d07cd9f4bf8030c00 (patch) | |
| tree | 29c91be257e45cdfbcafa7e6cda825462592beeb /pack.c | |
| parent | 2efa2847079c55018bf36174c45384e247bb22c6 (diff) | |
| download | ruby-ca3608096d23f4cd76ce3b8d07cd9f4bf8030c00.tar.gz ruby-ca3608096d23f4cd76ce3b8d07cd9f4bf8030c00.tar.xz ruby-ca3608096d23f4cd76ce3b8d07cd9f4bf8030c00.zip | |
* pack.c (pack_pack): 'u0' is not special differently from 'm0'.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
| -rw-r--r-- | pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -901,7 +901,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; |
