Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1_file: convert index_path and index_fd to struct object_id
[gitweb.git]
/
packfile.c
diff --git
a/packfile.c
b/packfile.c
index eab7542487a194ecd25708f906e66c40e1bed336..4a5fe7ab1883843a389ce74bf1c7bd89890d8e51 100644
(file)
--- a/
packfile.c
+++ b/
packfile.c
@@
-1743,7
+1743,7
@@
off_t find_pack_entry_one(const unsigned char *sha1,
sha1[0], sha1[1], sha1[2], lo, hi, p->num_objects);
while (lo < hi) {
- unsigned mi =
(lo + hi
) / 2;
+ unsigned mi =
lo + (hi - lo
) / 2;
int cmp = hashcmp(index + mi * stride, sha1);
if (debug_lookup)