Procházet zdrojové kódy

[Minor] Oops, fix logic

tags/1.9.2
Vsevolod Stakhov před 5 roky
rodič
revize
941d2b26d2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      contrib/fpconv/fpconv.c

+ 1
- 1
contrib/fpconv/fpconv.c Zobrazit soubor

@@ -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) {

Načítá se…
Zrušit
Uložit