]> source.dussan.org Git - rspamd.git/commitdiff
Fix exp2l using in inv_ch_square function.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 2 Jan 2014 15:31:43 +0000 (15:31 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 2 Jan 2014 15:31:43 +0000 (15:31 +0000)
src/classifiers/bayes.c

index ae291de243f20c639b470bb8853e79e21c79093a..554fc777c6c76dcb862327d1fdc9d9e21b3e480b 100644 (file)
@@ -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