Code

sha1-lookup: fix up the assertion message
authorJunio C Hamano <gitster@pobox.com>
Mon, 6 Apr 2009 07:48:49 +0000 (00:48 -0700)
committerJunio 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

index 055dd87dc177864491905c692907ebbce059ae7e..c4dc55d1f5cd07adcf46865354f841cc587c51f6 100644 (file)
@@ -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)