mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
pack.c: wrong position after count read.
This commit is contained in:
@@ -1242,7 +1242,7 @@ alias:
|
||||
mrb_raise(mrb, E_RUNTIME_ERROR, "too big template length");
|
||||
}
|
||||
count = (int)n;
|
||||
tmpl->idx += e - tptr;
|
||||
tmpl->idx = e - tptr;
|
||||
continue;
|
||||
} else if (ch == '*') {
|
||||
count = -1;
|
||||
|
||||
Reference in New Issue
Block a user