| 791 | return item; |
| 792 | } |
| 793 | cJSON *cJSON_CreateDouble(double num, int sign) { |
| 794 | cJSON *item = cJSON_New_Item(); |
| 795 | if (item) { |
| 796 | item->type = cJSON_Double; |
| 797 | item->valuedouble = num; |
| 798 | item->valueint = static_cast<uint64>(num); |
| 799 | item->sign = sign; |
| 800 | } |
| 801 | return item; |
| 802 | } |
| 803 | cJSON *cJSON_CreateInt(uint64 num, int sign) { |
| 804 | cJSON *item = cJSON_New_Item(); |
| 805 | if (item) { |
no test coverage detected