aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/fpconv/fpconv.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/fpconv/fpconv.h')
-rw-r--r--contrib/fpconv/fpconv.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/fpconv/fpconv.h b/contrib/fpconv/fpconv.h
index 0bc270b31..8c07c1368 100644
--- a/contrib/fpconv/fpconv.h
+++ b/contrib/fpconv/fpconv.h
@@ -1,6 +1,7 @@
#ifndef FPCONV_H
#define FPCONV_H
+#define FPCONV_BUFLEN 32
/* Fast and accurate double to string conversion based on Florian Loitsch's
* Grisu-algorithm[1].
*
@@ -26,7 +27,8 @@
*
*/
-int fpconv_dtoa(double fp, char dest[32], bool scientific);
+int fpconv_dtoa(double fp, char dest[FPCONV_BUFLEN], unsigned precision,
+ bool scientific);
#endif