Skip to content

Commit

Permalink
Changed a "for" loop into a "do ... while" loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne Davison committed Jul 4, 2004
1 parent 5e252de commit 066a844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions match.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ static void hash_search(int f,struct sum_struct *s,

sum = (s1 & 0xffff) | (s2 << 16);
tag_hits++;
for (; j < s->count && targets[j].t == t; j++) {
do {
unsigned int l;
size_t i = targets[j].i;

Expand Down Expand Up @@ -235,7 +235,7 @@ static void hash_search(int f,struct sum_struct *s,
s2 = sum >> 16;
matches++;
break;
}
} while (++j < s->count && targets[j].t == t);

null_tag:
/* Trim off the first byte from the checksum */
Expand Down

0 comments on commit 066a844

Please sign in to comment.