aboutsummaryrefslogtreecommitdiff
path: root/src/test_regexp.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-03-28 01:19:26 +0000
committerdrh <drh@noemail.net>2013-03-28 01:19:26 +0000
commit8dd661aad1aef278588dcc1981f1b7bde62554b0 (patch)
tree064d3583e25961d46062e458d62d3f87eae9f749 /src/test_regexp.c
parent1ffe7c7fab56b93f291abfe474a6a1995421e5fb (diff)
parent4b11bad35824c3f4f56e3d1560908a43d074443a (diff)
downloadsqlite-8dd661aad1aef278588dcc1981f1b7bde62554b0.tar.gz
sqlite-8dd661aad1aef278588dcc1981f1b7bde62554b0.zip
Merge the changes for the 3.7.16.1 release candidate into the sessions branch.
FossilOrigin-Name: ee35a89712b8ea9f4e70d61a29150348896b519f
Diffstat (limited to 'src/test_regexp.c')
-rw-r--r--src/test_regexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test_regexp.c b/src/test_regexp.c
index a1969ada4..829d22ad2 100644
--- a/src/test_regexp.c
+++ b/src/test_regexp.c
@@ -188,7 +188,7 @@ int re_match(ReCompiled *pRe, const unsigned char *zIn, int nIn){
in.z = zIn;
in.i = 0;
- in.mx = nIn>=0 ? nIn : strlen((char const*)zIn);
+ in.mx = nIn>=0 ? nIn : (int)strlen((char const*)zIn);
/* Look for the initial prefix match, if there is one. */
if( pRe->nInit ){
@@ -628,7 +628,7 @@ const char *re_compile(ReCompiled **ppRe, const char *zIn, int noCase){
}
pRe->sIn.z = (unsigned char*)zIn;
pRe->sIn.i = 0;
- pRe->sIn.mx = strlen(zIn);
+ pRe->sIn.mx = (int)strlen(zIn);
zErr = re_subcompile_re(pRe);
if( zErr ){
re_free(pRe);