You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2002/04/25 20:03:41 UTC

cvs commit: httpd-2.0/modules/experimental mod_ext_filter.c

wrowe       02/04/25 11:03:41

  Modified:    modules/experimental mod_ext_filter.c
  Log:
    Trade one signedness mismatch for another, but choose the one that is
    known to be a positive value.
  
  Revision  Changes    Path
  1.27      +4 -2      httpd-2.0/modules/experimental/mod_ext_filter.c
  
  Index: mod_ext_filter.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_ext_filter.c,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- mod_ext_filter.c	29 Mar 2002 08:17:21 -0000	1.26
  +++ mod_ext_filter.c	25 Apr 2002 18:03:41 -0000	1.27
  @@ -572,7 +572,7 @@
   }
   
   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 @@
               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;
           }
       }