Bug fix
authorceriel <none@none>
Thu, 5 Feb 1987 20:39:11 +0000 (20:39 +0000)
committerceriel <none@none>
Thu, 5 Feb 1987 20:39:11 +0000 (20:39 +0000)
lang/cem/libcc/gen/ecvt.c

index f354853..0217eb1 100644 (file)
@@ -78,7 +78,7 @@ cvt(value, ndigit, decpt, sign, ecvtflag)
                fractpart = modf(fractpart * 10, &value);
                *pb++ = (int)value + '0';
        }
-       pe = pb;
+       pb = pe;
        *pb += 5;       /* round of at the end */
        while (*pb > '9') {
                *pb = '0';