Bug #245176 --> several unsigned integers in the core bayesian algorithm should be signed integers because

they can be negative. Slightly improves our false negative rate on the benchmark.

Patch by Lorenzo Colitti
This commit is contained in:
scott%scott-macgregor.org 2004-06-01 03:26:28 +00:00
parent 62f2bca3b0
commit 8d71634ad7

View File

@ -989,7 +989,7 @@ void nsBayesianFilter::classifyMessage(Tokenizer& tokenizer, const char* message
first = (goodclues > 150) ? count - 150 : 0;
double H = 1.0, S = 1.0;
PRUint32 Hexp = 0, Sexp = 0;
PRInt32 Hexp = 0, Sexp = 0;
goodclues=0;
int e;