Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing of boolean type #148

Merged
merged 5 commits into from Dec 8, 2020
Merged

Fix parsing of boolean type #148

merged 5 commits into from Dec 8, 2020

Conversation

starix
Copy link
Contributor

@starix starix commented Dec 7, 2020

Exception "Property size doesn't match requested size" rise if we try to query bool value from TDH_INTYPE_BOOLEAN field.
Example of code:
if (prop.type() == TDH_INTYPE_BOOLEAN) val = parser.parse<bool>(prop.name());

Note, if we try to query TDH_INTYPE_BOOLEAN as BOOL (or any other 4-byte type) function parse() rise another exception "Attempt to read property 'XXX' type BOOLEAN as INT32"

@ghost
Copy link

ghost commented Dec 7, 2020

CLA assistant check
All CLA requirements met.

@swannman swannman merged commit b9b1a52 into microsoft:master Dec 8, 2020
starix added a commit to starix/krabsetw that referenced this pull request Dec 9, 2020
swannman added a commit that referenced this pull request Oct 8, 2021
* Rename targets file to match nuget id per #184

* Add assert_valid_assignment specialization that was missed in #148

* Bump nuget versions

* Revert unneeded change
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.

None yet

2 participants