diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-25 11:55:46 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-25 11:55:46 +0100 |
commit | 31a51f93c00abacf7c0a4f53d47b406731d55f59 (patch) | |
tree | df62f2d8258093d0c418cca548b0f5d79a5d32e5 | |
parent | f2270b4f9df181f788e6feafb7ee2503dc0dffcc (diff) | |
download | rspamd-31a51f93c00abacf7c0a4f53d47b406731d55f59.tar.gz rspamd-31a51f93c00abacf7c0a4f53d47b406731d55f59.zip |
Fix floating point classification in printf.
-rw-r--r-- | src/libutil/printf.c | 2 |
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) { |