From: William A. Rowe Jr Date: Thu, 25 Apr 2002 18:03:41 +0000 (+0000) Subject: Trade one signedness mismatch for another, but choose the one that is X-Git-Tag: 2.0.36~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed9fceafe336a4c101190522b4d4cb70db9baec5;p=thirdparty%2Fapache%2Fhttpd.git Trade one signedness mismatch for another, but choose the one that is known to be a positive value. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94801 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_ext_filter.c b/modules/experimental/mod_ext_filter.c index f2e70d19629..f7132f0a752 100644 --- a/modules/experimental/mod_ext_filter.c +++ b/modules/experimental/mod_ext_filter.c @@ -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; } }