Add some casts to avoid compiler warnings.
This commit is contained in:
parent
14edec2ad7
commit
6f4ee08469
|
@ -24,6 +24,8 @@ the public names in pcre2_convert.c.
|
||||||
|
|
||||||
7. Fixed a small memory leak in pcre2test (convert contexts).
|
7. Fixed a small memory leak in pcre2test (convert contexts).
|
||||||
|
|
||||||
|
8. Added two casts to compile.c and one to match.c to avoid compiler warnings.
|
||||||
|
|
||||||
|
|
||||||
Version 10.30 14-August-2017
|
Version 10.30 14-August-2017
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
|
@ -2194,8 +2194,8 @@ manage_callouts(PCRE2_SPTR ptr, uint32_t **pcalloutptr, BOOL auto_callout,
|
||||||
{
|
{
|
||||||
uint32_t *previous_callout = *pcalloutptr;
|
uint32_t *previous_callout = *pcalloutptr;
|
||||||
|
|
||||||
if (previous_callout != NULL) previous_callout[2] = ptr - cb->start_pattern -
|
if (previous_callout != NULL) previous_callout[2] = (uint32_t)(ptr -
|
||||||
(PCRE2_SIZE)previous_callout[1];
|
cb->start_pattern - (PCRE2_SIZE)previous_callout[1]);
|
||||||
|
|
||||||
if (!auto_callout) previous_callout = NULL; else
|
if (!auto_callout) previous_callout = NULL; else
|
||||||
{
|
{
|
||||||
|
@ -3806,7 +3806,7 @@ while (ptr < ptrend)
|
||||||
/* Remember the offset to the next item in the pattern, and set a default
|
/* Remember the offset to the next item in the pattern, and set a default
|
||||||
length. This should get updated after the next item is read. */
|
length. This should get updated after the next item is read. */
|
||||||
|
|
||||||
previous_callout[1] = ptr - cb->start_pattern;
|
previous_callout[1] = (uint32_t)(ptr - cb->start_pattern);
|
||||||
previous_callout[2] = 0;
|
previous_callout[2] = 0;
|
||||||
break; /* End callout */
|
break; /* End callout */
|
||||||
|
|
||||||
|
|
|
@ -729,7 +729,7 @@ for (;;)
|
||||||
fprintf(stderr, "++ op=%d\n", *Fecode);
|
fprintf(stderr, "++ op=%d\n", *Fecode);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Fop = *Fecode;
|
Fop = (uint8_t)(*Fecode); /* Cast needed for 16-bit and 32-bit modes */
|
||||||
switch(Fop)
|
switch(Fop)
|
||||||
{
|
{
|
||||||
/* ===================================================================== */
|
/* ===================================================================== */
|
||||||
|
|
Loading…
Reference in New Issue