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 LastTag; optimize spiffy error handling #240

Merged
merged 3 commits into from
Jun 28, 2024
Merged

Conversation

laurencelundblade
Copy link
Owner

@laurencelundblade laurencelundblade commented Jun 24, 2024

QCBORDecode_GetNthTagOfLast() now works correctly for all spiffy decode and similar decode operations. Before it was not filling in the tag values for some operations. Better test coverage.

Some refactoring and code size reduction for spiffy decode functions like QCBORDecode_GetBool().

QCBORDecode_GetItemInMapN() and QCBORDecode_GetItemInMapSZ() set the label and data types to QCBOR_TYPE_NONE when the decode is in error.

Minor internal restructure of QCBORDecode_Private_ExpMantissa(). Error codes from it will be more accurate.

Adresses #113

@laurencelundblade laurencelundblade merged commit cdbbc19 into master Jun 28, 2024
44 checks passed
@laurencelundblade laurencelundblade deleted the copytags branch June 28, 2024 22:13
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

1 participant