]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix a few warnings on 64 bits windows compilation
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 29 Aug 2020 20:30:41 +0000 (20:30 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 29 Aug 2020 20:30:41 +0000 (20:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1881303 13f79535-47bb-0310-9956-ffa450edef68

server/util_expr_eval.c

index 45cba52f987cff015b3a225f256d8b3248c9b60b..765a1a8b6767b33ef060bb266c90b7c5db007750 100644 (file)
@@ -521,7 +521,7 @@ static int ap_expr_eval_comp(ap_expr_eval_ctx_t *ctx, const ap_expr_t *node)
 /* combined string/int comparison for compatibility with ssl_expr */
 static int strcmplex(const char *str1, const char *str2)
 {
-    int i, n1, n2;
+    apr_size_t i, n1, n2;
 
     if (str1 == NULL)
         return -1;
@@ -1395,7 +1395,7 @@ static const char *sha1_func(ap_expr_eval_ctx_t *ctx, const void *data,
     out = apr_palloc(ctx->p, APR_SHA1_DIGESTSIZE*2+1);
 
     apr_sha1_init(&context);
-    apr_sha1_update(&context, arg, strlen(arg));
+    apr_sha1_update(&context, arg, (unsigned int)strlen(arg));
     apr_sha1_final(sha1, &context);
 
     ap_bin2hex(sha1, APR_SHA1_DIGESTSIZE, out);