~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/diff-delta.c

  • Committer: John Arbash Meinel
  • Date: 2009-08-03 16:54:36 UTC
  • mto: This revision was merged to the branch mainline in revision 4591.
  • Revision ID: john@arbash-meinel.com-20090803165436-l7ps9z3y3oridzce
Use a cast to improve compiler conformance.

Show diffs side-by-side

added added

removed removed

Lines of Context:
713
713
    prev_val = ~0;
714
714
    data = buffer;
715
715
    /* target size */
716
 
    get_delta_hdr_size(&data, top);
 
716
    /* get_delta_hdr_size doesn't mutate the content, just moves the
 
717
     * start-of-data pointer, so it is safe to do the cast.
 
718
     */
 
719
    get_delta_hdr_size((unsigned char**)&data, top);
717
720
    entry = entries; /* start at the first slot */
718
721
    num_entries = 0; /* calculate the real number of entries */
719
722
    while (data < top) {