diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-16 14:16:19 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-16 14:16:19 +0100 |
commit | 941d2b26d2c4c714eff95ba8dd45b4cf4bf03ab4 (patch) | |
tree | 5c9b1e431c163a47ff8d4fe437a7f9cb15bd25cf /contrib | |
parent | ee201b7a8c5a1116f3aae19de68520d9fc7391d3 (diff) | |
download | rspamd-941d2b26d2c4c714eff95ba8dd45b4cf4bf03ab4.tar.gz rspamd-941d2b26d2c4c714eff95ba8dd45b4cf4bf03ab4.zip |
[Minor] Oops, fix logic
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/fpconv/fpconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fpconv/fpconv.c b/contrib/fpconv/fpconv.c index 12c67cfa6..b01793400 100644 --- a/contrib/fpconv/fpconv.c +++ b/contrib/fpconv/fpconv.c @@ -220,7 +220,7 @@ static int emit_digits(char* digits, int ndigits, char* dest, int K, bool neg, } /* write decimal w/o scientific notation */ - if(scientific && (K < 0 && (K > -7 || exp < 4))) { + if(!scientific || (K < 0 && (K > -7 || exp < 4))) { int offset = ndigits - absv(K); /* fp < 1.0 -> write leading zero */ if(offset <= 0) { |