Cast needed for 32-bit environments.
This commit is contained in:
parent
57c44eec15
commit
293da188aa
|
@ -6036,13 +6036,13 @@ if (dat_datctl.replacement[0] != 0)
|
||||||
PCRE2_SIZE msize;
|
PCRE2_SIZE msize;
|
||||||
fprintf(outfile, "Failed: error %d", rc);
|
fprintf(outfile, "Failed: error %d", rc);
|
||||||
if (rc != PCRE2_ERROR_NOMEMORY && nsize != PCRE2_UNSET)
|
if (rc != PCRE2_ERROR_NOMEMORY && nsize != PCRE2_UNSET)
|
||||||
fprintf(outfile, " at offset %ld in replacement", nsize);
|
fprintf(outfile, " at offset %ld in replacement", (long int)nsize);
|
||||||
fprintf(outfile, ": ");
|
fprintf(outfile, ": ");
|
||||||
PCRE2_GET_ERROR_MESSAGE(msize, rc, pbuffer);
|
PCRE2_GET_ERROR_MESSAGE(msize, rc, pbuffer);
|
||||||
PCHARSV(CASTVAR(void *, pbuffer), 0, msize, FALSE, outfile);
|
PCHARSV(CASTVAR(void *, pbuffer), 0, msize, FALSE, outfile);
|
||||||
if (rc == PCRE2_ERROR_NOMEMORY &&
|
if (rc == PCRE2_ERROR_NOMEMORY &&
|
||||||
(xoptions & PCRE2_SUBSTITUTE_OVERFLOW_LENGTH) != 0)
|
(xoptions & PCRE2_SUBSTITUTE_OVERFLOW_LENGTH) != 0)
|
||||||
fprintf(outfile, ": %ld code units are needed", nsize);
|
fprintf(outfile, ": %ld code units are needed", (long int)nsize);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue