From 2c9474e9e386b7a0167aa2b5e8f3a83243c7a5c6 Mon Sep 17 00:00:00 2001 From: Dave Gamble Date: Sat, 9 Feb 2013 12:55:11 +0000 Subject: [PATCH] fix non-explicit cast git-svn-id: http://svn.code.sf.net/p/cjson/code@52 e3330c51-1366-4df0-8b21-3ccf24e3d50e --- cJSON.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON.c b/cJSON.c index 353b72d..04b5079 100644 --- a/cJSON.c +++ b/cJSON.c @@ -438,7 +438,7 @@ static char *print_object(cJSON *item,int depth,int fmt) /* Explicitly handle empty object case */ if (!numentries) { - out=cJSON_malloc(fmt?depth+3:3); + out=(char*)cJSON_malloc(fmt?depth+3:3); if (!out) return 0; ptr=out;*ptr++='{'; if (fmt) {*ptr++='\n';for (i=0;i