From 3c1bfe125cb5def3caf2fd0820b76fc2f39776d9 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sun, 2 Apr 2017 23:24:53 +0200 Subject: [PATCH] Clarify deprecation of valueint --- README.md | 2 +- cJSON.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3ca9eff..36e5639 100644 --- a/README.md +++ b/README.md @@ -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; diff --git a/cJSON.h b/cJSON.h index b649598..d3f492c 100644 --- a/cJSON.h +++ b/cJSON.h @@ -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;