Clarify deprecation of valueint

This commit is contained in:
Max Bruckner 2017-04-02 23:24:53 +02:00
parent 5916f70640
commit 3c1bfe125c
2 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ typedef struct cJSON {
int type;
char *valuestring;
int valueint; /* DEPRECATED, please use valudouble instead */
int valueint; /* writing to valueint is DEPRECATED, please use cJSON_SetNumberValue instead */
double valuedouble;
char *string;

View File

@ -63,7 +63,7 @@ typedef struct cJSON
/* The item's string, if type==cJSON_String and type == cJSON_Raw */
char *valuestring;
/* DEPRECATED, use valuedouble instead */
/* writing to valueint is DEPRECATED, use cJSON_SetNumberValue instead */
int valueint;
/* The item's number, if type==cJSON_Number */
double valuedouble;