diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-12-02 10:39:32 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-12-02 10:39:32 +0000 |
commit | 3d39f0a5f16085686668180e80e3008cb3fe878f (patch) | |
tree | e03c5e39d9eada6a903f7bd4cdc29febd66a6ec0 /pcre_exec.c | |
parent | 6b343554a0bc93c892c11365221c7094aaa4f5ff (diff) | |
download | pcre-3d39f0a5f16085686668180e80e3008cb3fe878f.tar.gz |
Added (int) casts to reduce 64-bit warnings.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@779 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_exec.c')
-rw-r--r-- | pcre_exec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pcre_exec.c b/pcre_exec.c index 2dd8a55..5a52192 100644 --- a/pcre_exec.c +++ b/pcre_exec.c @@ -217,7 +217,7 @@ else while (length-- > 0) if (*p++ != *eptr++) return -1; } -return eptr - eptr_start; +return (int)(eptr - eptr_start); } @@ -1070,7 +1070,7 @@ for (;;) if (offset < md->offset_max) { matched_once = FALSE; - code_offset = ecode - md->start_code; + code_offset = (int)(ecode - md->start_code); save_offset1 = md->offset_vector[offset]; save_offset2 = md->offset_vector[offset+1]; @@ -1160,7 +1160,7 @@ for (;;) POSSESSIVE_NON_CAPTURE: matched_once = FALSE; - code_offset = ecode - md->start_code; + code_offset = (int)(ecode - md->start_code); for (;;) { |