]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diff-delta.c
diff-delta.c: Fix broken skip calculation.
[thirdparty/git.git] / diff-delta.c
index 3af583536f2ee9f2d1f2fd699148ff16166dc932..0dde2f2dc032863b154509f5b966cfafb01dd722 100644 (file)
@@ -213,7 +213,7 @@ struct delta_index * create_delta_index(const void *buf, unsigned long bufsize)
                entry = hash[i];
                do {
                        struct index_entry *keep = entry;
-                       int skip = hash_count[i] / HASH_LIMIT / 2;
+                       int skip = hash_count[i] / HASH_LIMIT;
                        do {
                                entry = entry->next;
                        } while(--skip && entry);