]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diffcore-delta.c
Start the 2.46 cycle
[thirdparty/git.git] / diffcore-delta.c
index 4927ab8fb0c91554b849e3046e424cccc7eff325..ba6cbee76ba0180db352d4baf0653af201304046 100644 (file)
@@ -158,6 +158,10 @@ static struct spanhash_top *hash_chars(struct repository *r,
                n = 0;
                accum1 = accum2 = 0;
        }
+       if (n > 0) {
+               hashval = (accum1 + accum2 * 0x61) % HASHBASE;
+               hash = add_spanhash(hash, hashval, n);
+       }
        QSORT(hash->data, (size_t)1ul << hash->alloc_log2, spanhash_cmp);
        return hash;
 }