minor bug fixes (mechiel lukkien, andrey)

This commit is contained in:
rsc 2006-04-20 21:01:48 +00:00
parent a5f3a00bcd
commit 4f959600b6
4 changed files with 3 additions and 5 deletions

View file

@ -101,8 +101,6 @@ gethashes(u8int *score, ulong *h)
a ^= *(u32int*)(score+i);
b ^= *(u32int*)(score+i+4);
}
if(i+4 <= VtScoreSize) /* 20 is not 4-aligned */
a ^= *(u32int*)(score+i);
for(i=0; i<BloomMaxHash; i++, a+=b)
h[i] = a < BloomHeadSize*8 ? BloomHeadSize*8 : a;
}