bug fix
This commit is contained in:
parent
63af2a556b
commit
102790400d
1 changed files with 2 additions and 1 deletions
|
@ -58,6 +58,7 @@ cvt(value, ndigit, decpt, sign, ecvtflag)
|
||||||
*pe++ = (int)((value+.05) * 10) + '0';
|
*pe++ = (int)((value+.05) * 10) + '0';
|
||||||
pointpos++;
|
pointpos++;
|
||||||
} while (intpart != 0);
|
} while (intpart != 0);
|
||||||
|
pb = buf;
|
||||||
while (pe > buf1) *pb++ = *--pe;
|
while (pe > buf1) *pb++ = *--pe;
|
||||||
}
|
}
|
||||||
else if (value > 0) {
|
else if (value > 0) {
|
||||||
|
@ -103,6 +104,6 @@ cvt(value, ndigit, decpt, sign, ecvtflag)
|
||||||
}
|
}
|
||||||
*decpt = pointpos;
|
*decpt = pointpos;
|
||||||
*pe = '\0';
|
*pe = '\0';
|
||||||
return(buf);
|
return buf;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue