aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-06-25 11:55:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-06-25 11:55:46 +0100
commit31a51f93c00abacf7c0a4f53d47b406731d55f59 (patch)
treedf62f2d8258093d0c418cca548b0f5d79a5d32e5
parentf2270b4f9df181f788e6feafb7ee2503dc0dffcc (diff)
downloadrspamd-31a51f93c00abacf7c0a4f53d47b406731d55f59.tar.gz
rspamd-31a51f93c00abacf7c0a4f53d47b406731d55f59.zip
Fix floating point classification in printf.
-rw-r--r--src/libutil/printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/printf.c b/src/libutil/printf.c
index e27bb9cdb..03b801041 100644
--- a/src/libutil/printf.c
+++ b/src/libutil/printf.c
@@ -578,7 +578,7 @@ rspamd_vprintf_common (rspamd_printf_append_func func,
f = (gdouble) va_arg (args, long double);
}
- if (isnormal (f)) {
+ if (isfinite (f)) {
p = numbuf;
last = p + sizeof (numbuf);
if (f < 0) {