mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
Fix missing cast for compilation as c++!!
git-svn-id: http://svn.code.sf.net/p/cjson/code@39 e3330c51-1366-4df0-8b21-3ccf24e3d50e
This commit is contained in:
2
cJSON.c
2
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 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 that fails, we fail. */
|
||||||
if (!out) fail=1;
|
if (!out) fail=1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user