From 520f724895ac15f410e9b4c0bf86eef33f91b26c Mon Sep 17 00:00:00 2001 From: yugui Date: Fri, 12 Dec 2008 14:53:16 +0000 Subject: 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 --- pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pack.c') 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; -- cgit v1.2.3