Revision: 570
http://www.exim.org/viewvc/pcre2?view=rev&revision=570
Author: ph10
Date: 2016-10-15 10:21:12 +0100 (Sat, 15 Oct 2016)
Log Message:
-----------
Correct a couple of size_t that should be PCRE2_SIZE.
Modified Paths:
--------------
code/trunk/src/pcre2_dfa_match.c
code/trunk/src/pcre2_error.c
Modified: code/trunk/src/pcre2_dfa_match.c
===================================================================
--- code/trunk/src/pcre2_dfa_match.c 2016-10-14 17:06:34 UTC (rev 569)
+++ code/trunk/src/pcre2_dfa_match.c 2016-10-15 09:21:12 UTC (rev 570)
@@ -3115,7 +3115,7 @@
PCRE2_EXP_DEFN int PCRE2_CALL_CONVENTION
pcre2_dfa_match(const pcre2_code *code, PCRE2_SPTR subject, PCRE2_SIZE length,
PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data,
- pcre2_match_context *mcontext, int *workspace, size_t wscount)
+ pcre2_match_context *mcontext, int *workspace, PCRE2_SIZE wscount)
{
const pcre2_real_code *re = (const pcre2_real_code *)code;
Modified: code/trunk/src/pcre2_error.c
===================================================================
--- code/trunk/src/pcre2_error.c 2016-10-14 17:06:34 UTC (rev 569)
+++ code/trunk/src/pcre2_error.c 2016-10-15 09:21:12 UTC (rev 570)
@@ -277,10 +277,10 @@
*/
PCRE2_EXP_DEFN int PCRE2_CALL_CONVENTION
-pcre2_get_error_message(int enumber, PCRE2_UCHAR *buffer, size_t size)
+pcre2_get_error_message(int enumber, PCRE2_UCHAR *buffer, PCRE2_SIZE size)
{
const unsigned char *message;
-size_t i;
+PCRE2_SIZE i;
int n;
if (size == 0) return PCRE2_ERROR_NOMEMORY;