pack.c: wrong position after count read.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-06-12 14:43:34 +09:00
parent 56593764c8
commit f764467c19
+1 -1
View File
@@ -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;