From: Vsevolod Stakhov Date: Tue, 16 Apr 2019 13:16:19 +0000 (+0100) Subject: [Minor] Oops, fix logic X-Git-Tag: 1.9.2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=941d2b26d2c4c714eff95ba8dd45b4cf4bf03ab4;p=thirdparty%2Frspamd.git [Minor] Oops, fix logic --- diff --git a/contrib/fpconv/fpconv.c b/contrib/fpconv/fpconv.c index 12c67cfa68..b017934009 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) {