]> granicus.if.org Git - apache/commitdiff
Supress the warning for compilers which fold *end-*start into ssize_t.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 23 Aug 2007 08:12:55 +0000 (08:12 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 23 Aug 2007 08:12:55 +0000 (08:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@568879 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_headers.c

index 6d459b880ba31570f00fe911c256a768a91e8f0c..d35c44f14b299a44c328d1ee7daabd14d166e5ad 100644 (file)
@@ -641,7 +641,7 @@ static void do_headers_fixup(request_rec *r, apr_table_t *headers,
                                     break;
                     }
 
-                    if (new_val_len == (val - tok_start)
+                    if (new_val_len == (apr_size_t)(val - tok_start)
                         && !strncmp(tok_start, new_val, new_val_len)) {
                         tok_found = 1;
                         break;