summaryrefslogtreecommitdiff
path: root/src/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib')
-rw-r--r--src/stdlib/fcvt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/fcvt.c b/src/stdlib/fcvt.c
index 003aa5aa..f90928fe 100644
--- a/src/stdlib/fcvt.c
+++ b/src/stdlib/fcvt.c
@@ -16,7 +16,7 @@ char *fcvt(double x, int n, int *dp, int *sign)
if (n<=lz) {
*sign = i;
- *dp = 0;
+ *dp = 1;
if (n>14U) n = 14;
return "000000000000000"+14-n;
}