Browse Source

Clarify deprecation of valueint

Max Bruckner 8 years ago
parent
commit
3c1bfe125c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      README.md
  2. 1 1
      cJSON.h

+ 1 - 1
README.md

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

+ 1 - 1
cJSON.h

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