summaryrefslogtreecommitdiff
path: root/pcre_dfa_exec.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-01-23 17:30:49 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-01-23 17:30:49 +0000
commit6d006dba3ccf59347e2eec0b2d60f6d4a1254a33 (patch)
treea7e364bd593a3a7e3a43b38697836ff8b1a87e7f /pcre_dfa_exec.c
parentec7abfc6da4749a0deda01d514b353a43bdf39db (diff)
downloadpcre-6d006dba3ccf59347e2eec0b2d60f6d4a1254a33.tar.gz
Additional casts to avoid compiler warnings, originally from a MS compiler, but
also given by gcc if you turn on enough warnings. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@904 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_dfa_exec.c')
-rw-r--r--pcre_dfa_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcre_dfa_exec.c b/pcre_dfa_exec.c
index c751a42..21d7be6 100644
--- a/pcre_dfa_exec.c
+++ b/pcre_dfa_exec.c
@@ -3209,7 +3209,7 @@ if (!anchored)
if ((re->flags & PCRE_FIRSTSET) != 0)
{
has_first_char = TRUE;
- first_char = first_char2 = re->first_char;
+ first_char = first_char2 = (pcre_uchar)(re->first_char);
if ((re->flags & PCRE_FCH_CASELESS) != 0)
{
first_char2 = TABLE_GET(first_char, md->tables + fcc_offset, first_char);
@@ -3233,7 +3233,7 @@ character" set. */
if ((re->flags & PCRE_REQCHSET) != 0)
{
has_req_char = TRUE;
- req_char = req_char2 = re->req_char;
+ req_char = req_char2 = (pcre_uchar)(re->req_char);
if ((re->flags & PCRE_RCH_CASELESS) != 0)
{
req_char2 = TABLE_GET(req_char, md->tables + fcc_offset, req_char);