diff --git a/modules/lcr/lcr_mod.c b/modules/lcr/lcr_mod.c index 3bdcc98fb..d02d72fef 100644 --- a/modules/lcr/lcr_mod.c +++ b/modules/lcr/lcr_mod.c @@ -758,7 +758,8 @@ static pcre *reg_ex_comp(const char *pattern) { pcre *re, *result; const char *error; - int rc, size, err_offset; + int rc, err_offset; + size_t size; re = pcre_compile(pattern, 0, &error, &err_offset, NULL); if (re == NULL) { diff --git a/modules_k/regex/regex_mod.c b/modules_k/regex/regex_mod.c index 51665aa69..eb9f7440c 100644 --- a/modules_k/regex/regex_mod.c +++ b/modules_k/regex/regex_mod.c @@ -260,7 +260,7 @@ static int load_pcres(int action) char line[FILE_MAX_LINE]; char **patterns = NULL; pcre *pcre_tmp = NULL; - int pcre_size; + size_t pcre_size; int pcre_rc; const char *pcre_error; int pcre_erroffset;