Cast to get rid of compiler warning.

This commit is contained in:
Philip.Hazel 2018-12-14 16:02:29 +00:00
parent 5ca7ac2e8e
commit 9938684b7b
2 changed files with 3 additions and 1 deletions

View File

@ -100,6 +100,8 @@ it was reported not to on other systems, causing the tests to fail.
25. In the RunTest script, make the test for stack setting use the same value
for the stack as it needs for -bigstack.
26. Insert a cast in pcre2_dfa_match.c to suppress a compiler warning.
Version 10.32 10-September-2018
-------------------------------

View File

@ -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)