make these PROPERLY ansi-c compliant ;)

git-svn-id: http://svn.code.sf.net/p/cjson/code@2 e3330c51-1366-4df0-8b21-3ccf24e3d50e
This commit is contained in:
Dave Gamble
2009-08-26 03:57:15 +00:00
parent 805b652e51
commit a4a4e7cbff
2 changed files with 5 additions and 5 deletions

2
test.c
View File

@ -102,7 +102,7 @@ void create_objects()
{"zip",37.371991,-1.22026e+2,"","SUNNYVALE","CA","94085","US"}};
root=cJSON_CreateArray();
for (int i=0;i<2;i++)
for (i=0;i<2;i++)
{
cJSON_AddItemToArray(root,fld=cJSON_CreateObject());
cJSON_AddItemToObject(fld, "precision", cJSON_CreateString(fields[i].precision));