forgot leading zero in front of . in F format
authorceriel <none@none>
Thu, 4 Aug 1988 15:48:34 +0000 (15:48 +0000)
committerceriel <none@none>
Thu, 4 Aug 1988 15:48:34 +0000 (15:48 +0000)
lang/cem/libcc/gen/gcvt.c

index f5c9f98..021ca56 100644 (file)
@@ -42,6 +42,7 @@ gcvt(value, ndigit, buf)
        if (dp <= 0) {
                if (*s1 != '0') {
                        /* otherwise the whole number is 0 */
+                       *s2++ = '0';
                        *s2++ = '.';
                }
                while (dp < 0) {