summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pack.c b/pack.c
index 895d97c770..5b63c3f242 100644
--- a/pack.c
+++ b/pack.c
@@ -927,6 +927,8 @@ pack_pack(VALUE ary, VALUE fmt)
}
if (len <= 2)
len = 45;
+ else if (len > 63 && type == 'u')
+ len = 63;
else
len = len / 3 * 3;
while (plen > 0) {