diff src/xs_length.c @ 369:4611f1194941

Make binary search bailout value a #define in xmms-sid.h
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 09 Nov 2005 05:22:05 +0000
parents b1a858b8cb1a
children 7dc7e7dbbf90
line wrap: on
line diff
--- a/src/xs_length.c	Wed Nov 09 01:28:04 2005 +0000
+++ b/src/xs_length.c	Wed Nov 09 05:22:05 2005 +0000
@@ -245,7 +245,7 @@
 	iQNode = (iEndNode / 2);
 	iFound = FALSE;
 
-	while ((!iFound) && ((iEndNode - iStartNode) > 128)) {
+	while ((!iFound) && ((iEndNode - iStartNode) > XS_BIN_BAILOUT)) {
 		r = xs_sldb_cmphash(pHash, db->ppIndex[iQNode]->md5Hash);
 		if (r < 0) {
 			/* Hash was in the <- LEFT side */