Skip to content

Commit bfe2bd4

Browse files
committed
pack.c: fix M packing bug.
1 parent 8d85d4a commit bfe2bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mrbgems/mruby-pack/src/pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ mrb_pack_pack(mrb_state *mrb, mrb_value ary)
14421442
default:
14431443
break;
14441444
}
1445-
if (dir == PACK_DIR_STR || dir == PACK_DIR_BASE64 || dir == PACK_DIR_HEX) {
1445+
if (flags & PACK_FLAG_COUNT2) {
14461446
/* always consumes 1 entry */
14471447
aidx++;
14481448
break;

0 commit comments

Comments
 (0)