diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-23 14:55:40 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-23 14:55:40 +0100 |
commit | bb44d4ceaebe2dbc8f037d249d26501359199ac5 (patch) | |
tree | 20e5ce0ee2a0462e643f4df6af4dff2d62fc6cd2 | |
parent | f430f239ae2680129e197764efac64a37fec92ff (diff) | |
download | rspamd-bb44d4ceaebe2dbc8f037d249d26501359199ac5.tar.gz rspamd-bb44d4ceaebe2dbc8f037d249d26501359199ac5.zip |
Fix abs/fabs misuse.
-rw-r--r-- | src/libserver/symbols_cache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index fec045e19..f8944d86b 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -71,14 +71,14 @@ cache_logic_cmp (const void *p1, const void *p2) weight2 = i2->metric_weight == 0 ? i2->s->weight : i2->metric_weight; t1 = i1->s->avg_time / 1000000.0; t2 = i2->s->avg_time / 1000000.0; - w1 = SCORE_FUN (abs (weight1), f1, t1); - w2 = SCORE_FUN (abs (weight2), f2, t2); + w1 = SCORE_FUN (fabs (weight1), f1, t1); + w2 = SCORE_FUN (fabs (weight2), f2, t2); msg_debug ("%s -> %.2f, %s -> %.2f", i1->s->symbol, w1, i2->s->symbol, w2); } else { /* Strict sorting */ - w1 = abs (i1->priority); - w2 = abs (i2->priority); + w1 = fabs (i1->priority); + w2 = fabs (i2->priority); } return (gint)w2 - w1; |