Skip to content

bug fixes for indefinite containers#31

Open
jdk wants to merge 5 commits into
bergzand:masterfrom
flirc:master
Open

bug fixes for indefinite containers#31
jdk wants to merge 5 commits into
bergzand:masterfrom
flirc:master

Conversation

@jdk

@jdk jdk commented Jan 26, 2021

Copy link
Copy Markdown

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
Copy Markdown
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