aboutsummaryrefslogtreecommitdiffstats
path: root/src/classifiers/winnow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/classifiers/winnow.c')
-rw-r--r--src/classifiers/winnow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/classifiers/winnow.c b/src/classifiers/winnow.c
index c86782d85..c0c1bd755 100644
--- a/src/classifiers/winnow.c
+++ b/src/classifiers/winnow.c
@@ -274,7 +274,7 @@ winnow_classify (struct classifier_ctx *ctx, statfile_pool_t * pool, GTree * inp
* As some implementations of libm does not support tanhl, try to use
* tanh
*/
- max = tanh ((double) score);
+ max = tanh ((double) max);
#endif
sumbuf = memory_pool_alloc (task->task_pool, 32);
rspamd_snprintf (sumbuf, 32, "%.2F", max);
@@ -570,7 +570,7 @@ end:
* As some implementations of libm does not support tanhl, try to use
* tanh
*/
- *sum = tanh ((double) score);
+ *sum = tanh ((double) max);
#endif
}
return TRUE;