pack.c: fix M packing bug.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-08-16 10:56:44 +09:00
parent 8d85d4ac9b
commit bfe2bd4960
+1 -1
View File
@@ -1442,7 +1442,7 @@ mrb_pack_pack(mrb_state *mrb, mrb_value ary)
default:
break;
}
if (dir == PACK_DIR_STR || dir == PACK_DIR_BASE64 || dir == PACK_DIR_HEX) {
if (flags & PACK_FLAG_COUNT2) {
/* always consumes 1 entry */
aidx++;
break;