mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Should not decrement count when PACK_FLAG_COUNT2; fix #5057
This commit is contained in:
@@ -1302,7 +1302,7 @@ mrb_pack_pack(mrb_state *mrb, mrb_value ary)
|
||||
aidx++;
|
||||
break;
|
||||
}
|
||||
if (count > 0) {
|
||||
if (!(flags & PACK_FLAG_COUNT2) && count > 0) {
|
||||
count--;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user