Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
add: do not accept pathspec magic 'attr'
[gitweb.git]
/
builtin
/
pack-objects.c
diff --git
a/builtin/pack-objects.c
b/builtin/pack-objects.c
index 5ee2c48ffb82e4adde3fe25b4661f3624314f238..6e77dfd44439f4c5f928a73dce3233ff6e63c3b4 100644
(file)
--- a/
builtin/pack-objects.c
+++ b/
builtin/pack-objects.c
@@
-1277,7
+1277,7
@@
static int done_pbase_path_pos(unsigned hash)
int lo = 0;
int hi = done_pbase_paths_num;
while (lo < hi) {
- int mi =
(hi +
lo) / 2;
+ int mi =
lo + (hi -
lo) / 2;
if (done_pbase_paths[mi] == hash)
return mi;
if (done_pbase_paths[mi] < hash)