]> granicus.if.org Git - apache/commitdiff
Trade one signedness mismatch for another, but choose the one that is
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 25 Apr 2002 18:03:41 +0000 (18:03 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 25 Apr 2002 18:03:41 +0000 (18:03 +0000)
  known to be a positive value.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94801 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_ext_filter.c

index f2e70d19629a0e93e813af116622a36a868451ed..f7132f0a7527085d5ad2d8cf08a8b4e7a173db4d 100644 (file)
@@ -572,7 +572,7 @@ static apr_status_t drain_available_output(ap_filter_t *f)
 }
 
 static apr_status_t pass_data_to_filter(ap_filter_t *f, const char *data, 
-                                        apr_ssize_t len)
+                                        apr_size_t len)
 {
     ef_ctx_t *ctx = f->ctx;
     ef_dir_t *dc = ctx->dc;
@@ -670,8 +670,10 @@ static apr_status_t ef_output_filter(ap_filter_t *f, apr_bucket_brigade *bb)
             return rv;
         }
 
+        /* Good cast, we just tested len isn't negative */
         if (len > 0 &&
-            (rv = pass_data_to_filter(f, data, len)) != APR_SUCCESS) {
+            (rv = pass_data_to_filter(f, data, (apr_size_t)len)) 
+                != APR_SUCCESS) {
             return rv;
         }
     }