Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpx/lua-cjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'fpconv.c')
-rw-r--r--fpconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpconv.c b/fpconv.c
index 7990831..3ecb8f7 100644
--- a/fpconv.c
+++ b/fpconv.c
@@ -124,7 +124,7 @@ double fpconv_strtod(const char *nptr, char **endptr)
/* Duplicate number into buffer */
if (buflen >= FPCONV_G_FMT_BUFSIZE) {
/* Handle unusually large numbers */
- buf = malloc(buflen + 1);
+ buf = (char *)malloc(buflen + 1);
if (!buf) {
fprintf(stderr, "Out of memory");
abort();