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

bug fixes for indefinite containers #31

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

jdk
Copy link

@jdk jdk commented Jan 26, 2021

I believe this line:
*it->cur == (NANOCBOR_TYPE_FLOAT | NANOCBOR_SIZE_INDEFINITE))

was meant to be this:
*it->cur == (NANOCBOR_TYPE_FLOAT | NANOCBOR_VALUE_MASK)))

I however don't like this approach to 'OR' two random things together to get to 0xFF. It costs us nothing to make the code more intuitive and add a new definition.

@benpicco
Copy link
Contributor

#21 was merged in the meantime - I think this is still a worthwhile cleanup, but there are several unrelated commits in this PR.
What do you think @bergzand ?

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.

2 participants