ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/vector.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/vector.c (file contents):
Revision 1.8 by ats, Wed Apr 7 14:36:36 2004 UTC vs.
Revision 1.9 by tdb, Wed Apr 7 14:53:40 2004 UTC

# Line 34 | Line 34 | void *sg_vector_resize(void *vector, vector_header *h,
34          int new_count, i;
35  
36          /* Destroy any now-unused items.
37 <         *
37 >         *
38           * Note that there's an assumption here that making the vector smaller
39           * will never fail; if it did, then we would have destroyed items here
40           * but not actually got rid of the vector pointing to them before the
# Line 47 | Line 47 | void *sg_vector_resize(void *vector, vector_header *h,
47  
48          /* Round up the desired size to the next multiple of the block size. */
49          new_count =  ((count - 1 + h->block_size) / h->block_size)
50 <                     * h->block_size;
50 >                     * h->block_size;
51  
52          /* Resize the vector if necessary. */
53          if (new_count != h->alloc_count) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines