debugging
This commit is contained in:
parent
53f56329be
commit
6b9887c7e5
1 changed files with 4 additions and 0 deletions
|
|
@ -269,6 +269,10 @@ score2bucket(ISect *is, uchar *score)
|
||||||
u32int b;
|
u32int b;
|
||||||
|
|
||||||
b = hashbits(score, 32)/ix->div;
|
b = hashbits(score, 32)/ix->div;
|
||||||
|
if(b < is->start || b >= is->stop){
|
||||||
|
fprint(2, "score2bucket: score=%V div=%d b=%ud start=%ud stop=%ud\n",
|
||||||
|
score, ix->div, b, is->start, is->stop);
|
||||||
|
}
|
||||||
assert(is->start <= b && b < is->stop);
|
assert(is->start <= b && b < is->stop);
|
||||||
return b - is->start;
|
return b - is->start;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue