~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-03-19 23:30:50 UTC
  • mto: (3735.2.157 brisbane-core)
  • mto: This revision was merged to the branch mainline in revision 4280.
  • Revision ID: john@arbash-meinel.com-20090319233050-tf8ah6zasmeaetr0
*grow* the local hmask if it is smaller than expected, don't *shrink* it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
393
393
    for (i = 4; (1u << i) < hsize && i < 31; i++);
394
394
    hsize = 1 << i;
395
395
    hmask = hsize - 1;
396
 
    if (old && old->hash_mask < hmask) {
 
396
    if (old && old->hash_mask > hmask) {
397
397
        hmask = old->hash_mask;
398
398
        hsize = hmask + 1;
399
399
    }