This commit is contained in:
ceriel 1987-02-06 13:28:01 +00:00
parent 63af2a556b
commit 102790400d

View file

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