summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/stdlib/gcvt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdlib/gcvt.c b/libc/stdlib/gcvt.c
index 4ce5cf4ee..71bfcec80 100644
--- a/libc/stdlib/gcvt.c
+++ b/libc/stdlib/gcvt.c
@@ -1,9 +1,9 @@
-
+#include <stdio.h>
#include <stdlib.h>
#ifdef __UCLIBC_HAS_FLOATS__
#define MAX_NDIGIT 17
-char * gcvt(double number, size_t ndigit, char* buf)
+char *gcvt (double number, int ndigit, char *buf)
{
sprintf(buf, "%.*g", (ndigit > MAX_NDIGIT)? MAX_NDIGIT : ndigit, number);
return buf;