Insert missing casts to reduce compiler warnings.
This commit is contained in:
parent
ffd53c9223
commit
fe965353e6
|
@ -140,7 +140,7 @@ values of 3 or 4 are also supported. */
|
||||||
#undef LINK_SIZE
|
#undef LINK_SIZE
|
||||||
#define LINK_SIZE 1
|
#define LINK_SIZE 1
|
||||||
#define PUT(a,n,d) \
|
#define PUT(a,n,d) \
|
||||||
(a[n] = (d))
|
(a[n] = (PCRE2_UCHAR)(d))
|
||||||
#define GET(a,n) \
|
#define GET(a,n) \
|
||||||
(a[n])
|
(a[n])
|
||||||
#define MAX_PATTERN_SIZE (1 << 16)
|
#define MAX_PATTERN_SIZE (1 << 16)
|
||||||
|
|
|
@ -1319,7 +1319,7 @@ for (;;)
|
||||||
{
|
{
|
||||||
pcre2_callout_block cb;
|
pcre2_callout_block cb;
|
||||||
cb.version = 1;
|
cb.version = 1;
|
||||||
cb.capture_top = offset_top/2;
|
cb.capture_top = (uint32_t)offset_top/2;
|
||||||
cb.capture_last = mb->capture_last & CAPLMASK;
|
cb.capture_last = mb->capture_last & CAPLMASK;
|
||||||
cb.offset_vector = mb->ovector;
|
cb.offset_vector = mb->ovector;
|
||||||
cb.mark = mb->nomatch_mark;
|
cb.mark = mb->nomatch_mark;
|
||||||
|
@ -1746,7 +1746,7 @@ for (;;)
|
||||||
pcre2_callout_block cb;
|
pcre2_callout_block cb;
|
||||||
cb.version = 1;
|
cb.version = 1;
|
||||||
cb.callout_number = ecode[LINK_SIZE + 1];
|
cb.callout_number = ecode[LINK_SIZE + 1];
|
||||||
cb.capture_top = offset_top/2;
|
cb.capture_top = (uint32_t)offset_top/2;
|
||||||
cb.capture_last = mb->capture_last & CAPLMASK;
|
cb.capture_last = mb->capture_last & CAPLMASK;
|
||||||
cb.offset_vector = mb->ovector;
|
cb.offset_vector = mb->ovector;
|
||||||
cb.mark = mb->nomatch_mark;
|
cb.mark = mb->nomatch_mark;
|
||||||
|
@ -7162,7 +7162,7 @@ if (rc == MATCH_MATCH || rc == MATCH_ACCEPT)
|
||||||
too many to fit into the ovector. */
|
too many to fit into the ovector. */
|
||||||
|
|
||||||
match_data->rc = ((mb->capture_last & OVFLBIT) != 0)?
|
match_data->rc = ((mb->capture_last & OVFLBIT) != 0)?
|
||||||
0 : mb->end_offset_top/2;
|
0 : (int)mb->end_offset_top/2;
|
||||||
|
|
||||||
/* If there is space in the offset vector, set any pairs that follow the
|
/* If there is space in the offset vector, set any pairs that follow the
|
||||||
highest-numbered captured string but are less than the number of capturing
|
highest-numbered captured string but are less than the number of capturing
|
||||||
|
|
Loading…
Reference in New Issue