From a8e61163e0324fe78881f8d8904ea38a4cf3313a Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Sat, 15 Oct 2016 09:21:12 +0000 Subject: [PATCH] Correct a couple of size_t that should be PCRE2_SIZE. --- src/pcre2_dfa_match.c | 2 +- src/pcre2_error.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pcre2_dfa_match.c b/src/pcre2_dfa_match.c index 12b31b1..07281be 100644 --- a/src/pcre2_dfa_match.c +++ b/src/pcre2_dfa_match.c @@ -3115,7 +3115,7 @@ Returns: > 0 => number of match offset pairs placed in offsets 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; diff --git a/src/pcre2_error.c b/src/pcre2_error.c index f4751d5..c09d3d9 100644 --- a/src/pcre2_error.c +++ b/src/pcre2_error.c @@ -277,10 +277,10 @@ Returns: length of message if all is well */ 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;