Bug fix
This commit is contained in:
parent
e0b23bbaea
commit
ac77d6c7fe
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ cvt(value, ndigit, decpt, sign, ecvtflag)
|
||||||
fractpart = modf(fractpart * 10, &value);
|
fractpart = modf(fractpart * 10, &value);
|
||||||
*pb++ = (int)value + '0';
|
*pb++ = (int)value + '0';
|
||||||
}
|
}
|
||||||
pe = pb;
|
pb = pe;
|
||||||
*pb += 5; /* round of at the end */
|
*pb += 5; /* round of at the end */
|
||||||
while (*pb > '9') {
|
while (*pb > '9') {
|
||||||
*pb = '0';
|
*pb = '0';
|
||||||
|
|
Loading…
Reference in a new issue