From: Eric S. Raymond Date: Wed, 10 Mar 2004 17:18:20 +0000 (+0000) Subject: Fix undercounting of matching segments. X-Git-Tag: 2.4~13 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=1f9a5fa519ebc809a4c4770d229cc607a321b808;p=comparator.git Fix undercounting of matching segments. --- diff --git a/report.c b/report.c index 9570825..ffd9568 100644 --- a/report.c +++ b/report.c @@ -471,10 +471,7 @@ int line_count(const char *name) for (match = hitlist; match < hitlist + mergecount; match++) for (i=0; i < match->nmatches; i++) if (!strncmp(name, match->matches[i].file->name, strlen(name))) - { count += match->matches[i].hash.end - match->matches[i].hash.start + 1; - break; - } return(count); }