pack.c: `count` should not be negative for directives `xX@`.
MODIFY
mrbgems/mruby-pack/src/pack.c
mrbgems/mruby-pack/src/pack.c
@@ -1251,6 +1251,9 @@ alias:
tmpl->idx = e - tptr;
continue;
} else if (ch == '*') {
+ if (type == PACK_TYPE_NONE)
+ count = 0;
+ else
count = -1;
} else if (ch == '_' || ch == '!' || ch == '<' || ch == '>') {
if (strchr("sSiIlLqQ", (int)t) == NULL) {

pack.c: `count` should not be negative for directives `xX@`.