From 15dada46b58a0cb96afd7777fbc11af31d9b8676 Mon Sep 17 00:00:00 2001 From: Dave Gamble Date: Mon, 7 Mar 2011 16:35:13 +0000 Subject: [PATCH] Fix missing cast for compilation as c++!! git-svn-id: http://svn.code.sf.net/p/cjson/code@39 e3330c51-1366-4df0-8b21-3ccf24e3d50e --- cJSON.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON.c b/cJSON.c index 461b332..4f30e3a 100644 --- a/cJSON.c +++ b/cJSON.c @@ -337,7 +337,7 @@ static char *print_array(cJSON *item,int depth,int fmt) } /* If we didn't fail, try to malloc the output string */ - if (!fail) out=cJSON_malloc(len); + if (!fail) out=(char*)cJSON_malloc(len); /* If that fails, we fail. */ if (!out) fail=1;