Commit 5851ac2d authored by Wayne Davison's avatar Wayne Davison

Fixed a problem with build_hash_table() getting called too

often when overwriting a shorter file.
parent e844a4a8
...@@ -171,7 +171,10 @@ static void hash_search(int f,struct sum_struct *s, ...@@ -171,7 +171,10 @@ static void hash_search(int f,struct sum_struct *s,
if (offset >= reset) { if (offset >= reset) {
sum_pos = build_hash_table(s, sum_pos); sum_pos = build_hash_table(s, sum_pos);
reset = sum_pos * s->blength; if (sum_pos == s->count)
reset = len;
else
reset = sum_pos * s->blength;
} }
if (verbose > 4) { if (verbose > 4) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment