musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdlib/ecvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/ecvt.c')
-rw-r--r--src/stdlib/ecvt.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/ecvt.c b/src/stdlib/ecvt.c
index 48e70cd8..79c3de63 100644
--- a/src/stdlib/ecvt.c
+++ b/src/stdlib/ecvt.c
@@ -13,7 +13,7 @@ char *ecvt(double x, int n, int *dp, int *sign)
for (j=0; tmp[i]!='e'; j+=(tmp[i++]!='.'))
buf[j] = tmp[i];
buf[j] = 0;
- *dp = atoi(tmp+i+1);
+ *dp = atoi(tmp+i+1)+1;
return buf;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月20日 05:30:41 +0000

AltStyle によって変換されたページ (->オリジナル) /