From: Vsevolod Stakhov Date: Thu, 2 Jan 2014 15:31:43 +0000 (+0000) Subject: Fix exp2l using in inv_ch_square function. X-Git-Tag: 0.6.7~35 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5c9feedda48f5f64482204a615cd17b79bd60bac;p=rspamd.git Fix exp2l using in inv_ch_square function. --- 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