diff options
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r-- | src/cfg_utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c index 765ff7f34..d015d60a0 100644 --- a/src/cfg_utils.c +++ b/src/cfg_utils.c @@ -635,12 +635,14 @@ internal_normalizer_func (struct config_file *cfg, long double score, void *data } #ifdef HAVE_TANHL return max * tanhl (score / max); -#else +#elif defined(HAVE_TANHL) /* * As some implementations of libm does not support tanhl, try to use * tanh */ return max * tanh ((double) (score / max)); +#else + return score < max ? score / max : max; #endif } |