more fixes for low level profiler.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@830 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2003-05-21 12:15:09 +00:00
parent 0afb07931f
commit 7a6f4037bd
3 changed files with 25 additions and 6 deletions

View File

@@ -205,10 +205,9 @@ static void
search_pc_pred(yamop *pc_ptr,clauseentry *beg, clauseentry *end) {
/* binary search, dynamic clauses not supported yet */
Int i, j, f, l;
f = 0; l = (end-beg)-1;
f = 0; l = (end-beg);
i = l/2;
while (TRUE) {
printf("i %d\n", i);
if (beg[i].beg > pc_ptr) {
l = i-1;
if (l < f) {