We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c7759cd + 6355a76 commit c580ce1Copy full SHA for c580ce1
sha1_file.c
@@ -2800,7 +2800,7 @@ off_t find_pack_entry_one(const unsigned char *sha1,
2800
return nth_packed_object_offset(p, pos);
2801
}
2802
2803
- do {
+ while (lo < hi) {
2804
unsigned mi = (lo + hi) / 2;
2805
int cmp = hashcmp(index + mi * stride, sha1);
2806
@@ -2813,7 +2813,7 @@ off_t find_pack_entry_one(const unsigned char *sha1,
2813
hi = mi;
2814
else
2815
lo = mi+1;
2816
- } while (lo < hi);
+ }
2817
return 0;
2818
2819
0 commit comments