Browse Source

sha1-lookup: fix up the assertion message

Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Junio C Hamano 16 years ago
parent
commit
1a7b1f6b9c
  1. 2
      sha1-lookup.c

2
sha1-lookup.c

@ -81,7 +81,7 @@ int sha1_pos(const unsigned char *sha1, void *table, size_t nr, @@ -81,7 +81,7 @@ int sha1_pos(const unsigned char *sha1, void *table, size_t nr,
mi = (nr - 1) * (miv - lov) / (hiv - lov);
if (lo <= mi && mi < hi)
break;
die("oops");
die("BUG: assertion failed in binary search");
}
}
if (18 <= ofs)

Loading…
Cancel
Save