summaryrefslogtreecommitdiff
path: root/src/pcre2_dfa_match.c
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2018-12-14 16:02:29 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2018-12-14 16:02:29 +0000
commitd1652904e15c4c59225701c9407ed7539e069bac (patch)
tree9db280b584209cbdb62126bbc74d5747c32f5069 /src/pcre2_dfa_match.c
parentb3afecacc9b78e0e7ef52008bbee937adbf7f45d (diff)
downloadpcre2-d1652904e15c4c59225701c9407ed7539e069bac.tar.gz
Cast to get rid of compiler warning.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1055 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_dfa_match.c')
-rw-r--r--src/pcre2_dfa_match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcre2_dfa_match.c b/src/pcre2_dfa_match.c
index e724aeb..3f7d04e 100644
--- a/src/pcre2_dfa_match.c
+++ b/src/pcre2_dfa_match.c
@@ -426,7 +426,7 @@ else
uint32_t newsizeK = newsize/(1024/sizeof(int));
if (newsizeK + mb->heap_used > mb->heap_limit)
- newsizeK = mb->heap_limit - mb->heap_used;
+ newsizeK = (uint32_t)(mb->heap_limit - mb->heap_used);
newsize = newsizeK*(1024/sizeof(int));
if (newsize < RWS_RSIZE + ovecsize + RWS_ANCHOR_SIZE)