aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r--src/cfg_utils.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c
index 7e8bb3abc..27af7911a 100644
--- a/src/cfg_utils.c
+++ b/src/cfg_utils.c
@@ -718,21 +718,17 @@ internal_normalizer_func (struct config_file *cfg, long double score, void *data
long double max = *(double *)data;
if (score < 0) {
- return score;
+ return score;
}
- else {
#ifdef HAVE_TANHL
- return max * tanhl (score / max);
+ return max * tanhl (score / max);
#else
- /*
- * As some implementations of libm does not support tanhl, try to use
- * tanh
- */
- return max * tanh ((double) (score / max));
+ /*
+ * As some implementations of libm does not support tanhl, try to use
+ * tanh
+ */
+ return max * tanh ((double) (score / max));
#endif
- }
-
- return score;
}
static gboolean