Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
sha1-lookup: fix up the assertion message
author
Junio C Hamano
<gitster@pobox.com>
Mon, 6 Apr 2009 07:48:49 +0000
(
00:48
-0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 6 Apr 2009 07:56:27 +0000
(
00:56
-0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1-lookup.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
5289bae
)
diff --git
a/sha1-lookup.c
b/sha1-lookup.c
index 055dd87dc177864491905c692907ebbce059ae7e..c4dc55d1f5cd07adcf46865354f841cc587c51f6 100644
(file)
--- a/
sha1-lookup.c
+++ b/
sha1-lookup.c
@@
-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)