| 1001 | return item; |
| 1002 | } |
| 1003 | cJSON *cJSON_CreateDouble(double num, int sign) |
| 1004 | { |
| 1005 | cJSON *item = cJSON_New_Item(); |
| 1006 | if (item) |
| 1007 | { |
| 1008 | item->type = cJSON_Double; |
| 1009 | item->valuedouble = num; |
| 1010 | item->valueint = (int64)num; |
| 1011 | item->sign = sign; |
| 1012 | } |
| 1013 | return item; |
| 1014 | } |
| 1015 | cJSON *cJSON_CreateInt(uint64 num, int sign) |
| 1016 | { |
| 1017 | cJSON *item = cJSON_New_Item(); |
no test coverage detected