diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-01-02 15:31:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-01-02 15:31:43 +0000 |
commit | 5c9feedda48f5f64482204a615cd17b79bd60bac (patch) | |
tree | 055d76e9023bb916564d91ced9097e1bd4e65bd3 /src | |
parent | 5cd3cd53253fcf05ea328d32bbd119d185e1df21 (diff) | |
download | rspamd-5c9feedda48f5f64482204a615cd17b79bd60bac.tar.gz rspamd-5c9feedda48f5f64482204a615cd17b79bd60bac.zip |
Fix exp2l using in inv_ch_square function.
Diffstat (limited to 'src')
-rw-r--r-- | src/classifiers/bayes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/classifiers/bayes.c b/src/classifiers/bayes.c index ae291de24..554fc777c 100644 --- a/src/classifiers/bayes.c +++ b/src/classifiers/bayes.c @@ -124,7 +124,7 @@ inv_chi_square (gdouble value, gint freedom_deg) #ifdef HAVE_EXPL prob = expl (-value); #elif defined(HAVE_EXP2L) - prob = exp2l (-value); + prob = exp2l (-value * log2 (M_E)); #else prob = exp (-value); #endif |