apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr-util/buckets apr_brigade.c
Date Tue, 02 Jul 2002 18:20:57 GMT
wrowe       2002/07/02 11:20:57

  Modified:    buckets  apr_brigade.c
  Log:
    New emit on win32.  Since this is a heap bucket, we are always dealing
    in start offsets that fit in apr_size_t.  This doesn't need the file
    sized apr_off_t resolution.
  
  Revision  Changes    Path
  1.48      +2 -1      apr-util/buckets/apr_brigade.c
  
  Index: apr_brigade.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_brigade.c,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- apr_brigade.c	1 Jul 2002 07:38:10 -0000	1.47
  +++ apr_brigade.c	2 Jul 2002 18:20:57 -0000	1.48
  @@ -410,7 +410,8 @@
       if (!APR_BRIGADE_EMPTY(b) && APR_BUCKET_IS_HEAP(e)) {
           apr_bucket_heap *h = e->data;
   
  -        remaining = h->alloc_len - (e->length + e->start);
  +        /* HEAP bucket start offsets are always in-memory, safe to cast */
  +        remaining = h->alloc_len - (e->length + (apr_size_t)e->start);
           buf = h->base + e->start + e->length;
       }
   
  
  
  

Mime
View raw message