drop 2x sparse multiplier

This commit is contained in:
Kyryl Melekhin
2022-02-22 14:54:44 +00:00
parent eb01f29134
commit 26b5b25149

2
pike.c
View File

@@ -423,7 +423,7 @@ int re_comp(rcode *prog, const char *re, int nsubs)
prog->len = icnt + 2; prog->len = icnt + 2;
prog->presub = sizeof(rsub)+(sizeof(char*) * (nsubs + 1) * 2); prog->presub = sizeof(rsub)+(sizeof(char*) * (nsubs + 1) * 2);
prog->sub = prog->presub * (prog->len - prog->splits + 4); prog->sub = prog->presub * (prog->len - prog->splits + 4);
prog->sparsesz = (scnt - 2) * 2; prog->sparsesz = scnt;
return RE_SUCCESS; return RE_SUCCESS;
} }