summaryrefslogtreecommitdiff
path: root/pcre/pcre_exec.c
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2017-07-30 11:53:36 +0300
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2017-07-30 11:53:36 +0300
commitdba454ef54bfc83cc1ade93c668f39ec0a5895d3 (patch)
tree1ea904c2a08d6258cd28e22138ea789d9eb8d037 /pcre/pcre_exec.c
parentdfd7749120e592299fddf2710bc336ee1000ae07 (diff)
downloadmariadb-git-dba454ef54bfc83cc1ade93c668f39ec0a5895d3.tar.gz
8.41
Diffstat (limited to 'pcre/pcre_exec.c')
-rw-r--r--pcre/pcre_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcre/pcre_exec.c b/pcre/pcre_exec.c
index 24b23ca2864..1a9bdd546ee 100644
--- a/pcre/pcre_exec.c
+++ b/pcre/pcre_exec.c
@@ -669,7 +669,7 @@ if (ecode == NULL)
return match((PCRE_PUCHAR)&rdepth, NULL, NULL, 0, NULL, NULL, 1);
else
{
- int len = (char *)&rdepth - (char *)eptr;
+ int len = (int)((char *)&rdepth - (char *)eptr);
return (len > 0)? -len : len;
}
}