~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/diff-delta.c

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-05 17:04:44 UTC
  • mfrom: (4582.2.2 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090805170444-r6el9za77gdxzbfy
(jam) Small 'const' fixes for diff-delta.c (bug #408441)

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) {