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

shared/ConnId: Fix logic error in constructor #264

Conversation

chrysn
Copy link
Collaborator

@chrysn chrysn commented May 3, 2024

This fixes a copy-paste error stemming from using code from from_int_raw without inverting the conditions, and adds documentation including doctests on this and related methods.


This fixes a bug introduced in #260 that was not covered by tests (because the tests do not try the path where the initiator deliberately chooses a C_I)

@geonnave
Copy link
Collaborator

Looks good, left one comment, thanks.

This fixes a copy-paste error stemming from using code from from_int_raw
without inverting the conditions, and adds documentation including
doctests on this and related methods.
@chrysn chrysn force-pushed the connid-from-slice-fix-and-doc branch from 774ee8f to 4192eb1 Compare May 13, 2024 09:19
@geonnave geonnave merged commit 3148374 into openwsn-berkeley:main May 13, 2024
20 checks passed
@chrysn chrysn deleted the connid-from-slice-fix-and-doc branch May 13, 2024 09:56
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