Changeset: 07af1fbf68b7 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=07af1fbf68b7 Modified Files: monetdb5/modules/mal/pcre.c Branch: Mar2018 Log Message:
Reuse result. diffs (12 lines): diff --git a/monetdb5/modules/mal/pcre.c b/monetdb5/modules/mal/pcre.c --- a/monetdb5/modules/mal/pcre.c +++ b/monetdb5/modules/mal/pcre.c @@ -630,7 +630,7 @@ single_replace(pcre *pcre_code, pcre_ext len = 0; } else { off = ovector[backrefs[i].idx * 2]; - len = ovector[backrefs[i].idx * 2 + 1] - ovector[backrefs[i].idx * 2]; + len = ovector[backrefs[i].idx * 2 + 1] - off; } addlen = backrefs[i].start - prevend + len; if (len_result + addlen >= *max_result) { _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list