Revision: 470
http://www.exim.org/viewvc/pcre2?view=rev&revision=470
Author: ph10
Date: 2015-12-17 17:15:19 +0000 (Thu, 17 Dec 2015)
Log Message:
-----------
Cast needed for 32-bit environments.
Modified Paths:
--------------
code/trunk/src/pcre2test.c
Modified: code/trunk/src/pcre2test.c
===================================================================
--- code/trunk/src/pcre2test.c 2015-12-16 18:44:24 UTC (rev 469)
+++ code/trunk/src/pcre2test.c 2015-12-17 17:15:19 UTC (rev 470)
@@ -6036,13 +6036,13 @@
PCRE2_SIZE msize;
fprintf(outfile, "Failed: error %d", rc);
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, ": ");
PCRE2_GET_ERROR_MESSAGE(msize, rc, pbuffer);
PCHARSV(CASTVAR(void *, pbuffer), 0, msize, FALSE, outfile);
if (rc == PCRE2_ERROR_NOMEMORY &&
(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
{