mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
Adding same bug fix as 20303 to vfprintf.c it did have same problem. thx for GvG bugfix.
svn path=/trunk/; revision=20326
This commit is contained in:
parent
4e2b520755
commit
344a183c14
|
@ -367,13 +367,20 @@ static int numberf(FILE * f, double __n, char exp_sign, int size, int precision
|
||||||
}
|
}
|
||||||
|
|
||||||
tmp = buf;
|
tmp = buf;
|
||||||
|
|
||||||
if ( type & ZEROTRUNC && ((type & SPECIAL) != SPECIAL) ) {
|
if ( type & ZEROTRUNC && ((type & SPECIAL) != SPECIAL) ) {
|
||||||
j = 0;
|
j = 0;
|
||||||
while ( j < i && ( *tmp == '0' || *tmp == '.' )) {
|
while ( j < i && *tmp == L'0' ) {
|
||||||
|
tmp++;
|
||||||
|
i--;
|
||||||
|
}
|
||||||
|
if ( j < i && *tmp == L'.' ) {
|
||||||
tmp++;
|
tmp++;
|
||||||
i--;
|
i--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// else
|
// else
|
||||||
// while (i < precision--)
|
// while (i < precision--)
|
||||||
// putc('0', f);
|
// putc('0', f);
|
||||||
|
|
Loading…
Reference in a new issue