Skip to content

fix: set valueint for cJSON_CreateTrue and cJSON_CreateBool#994

Open
cuiweixie wants to merge 1 commit intoDaveGamble:masterfrom
cuiweixie:bugfix/master
Open

fix: set valueint for cJSON_CreateTrue and cJSON_CreateBool#994
cuiweixie wants to merge 1 commit intoDaveGamble:masterfrom
cuiweixie:bugfix/master

Conversation

@cuiweixie
Copy link

cJSON_CreateTrue() and cJSON_CreateBool(true) left valueint as 0, while parsing "true" from JSON sets valueint to 1. This inconsistency caused programmatically created boolean values to behave differently from parsed ones.

cJSON_CreateTrue() and cJSON_CreateBool(true) left valueint as 0,
while parsing "true" from JSON sets valueint to 1. This inconsistency
caused programmatically created boolean values to behave differently
from parsed ones.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant