diff options
Diffstat (limited to 'src/pcre2test.c')
-rw-r--r-- | src/pcre2test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pcre2test.c b/src/pcre2test.c index 4f17a43..6343ff9 100644 --- a/src/pcre2test.c +++ b/src/pcre2test.c @@ -6033,14 +6033,14 @@ if (dat_datctl.replacement[0] != 0) if (rc < 0) { - PCRE2_SIZE msize; + PCRE2_SIZE msize; fprintf(outfile, "Failed: error %d", rc); if (rc != PCRE2_ERROR_NOMEMORY && nsize != PCRE2_UNSET) fprintf(outfile, " at offset %ld in replacement", (long int)nsize); fprintf(outfile, ": "); PCRE2_GET_ERROR_MESSAGE(msize, rc, pbuffer); PCHARSV(CASTVAR(void *, pbuffer), 0, msize, FALSE, outfile); - if (rc == PCRE2_ERROR_NOMEMORY && + if (rc == PCRE2_ERROR_NOMEMORY && (xoptions & PCRE2_SUBSTITUTE_OVERFLOW_LENGTH) != 0) fprintf(outfile, ": %ld code units are needed", (long int)nsize); } @@ -6405,7 +6405,7 @@ else for (gmatched = 0;; gmatched++) TESTFLD(match_data, mark, !=, NULL)) { fprintf(outfile, ", mark="); - PCHARS(rubriclength, CASTFLD(void *, match_data, mark), 0, -1, utf, + PCHARS(rubriclength, CASTFLD(void *, match_data, mark), 0, -1, utf, outfile); rubriclength += 7; } |