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(gadgets): bugs in assign_bit #356

Merged
merged 2 commits into from
Sep 30, 2024
Merged

fix(gadgets): bugs in assign_bit #356

merged 2 commits into from
Sep 30, 2024

Conversation

cyphersnake
Copy link
Collaborator

@cyphersnake cyphersnake commented Sep 27, 2024

Motivation
There was a bug, since:

  • a was twice assigned into s[0] rather than into s[0] & s[1]
  • q_o was not assigned at all, but q_m was assigned twice.
    So the actual check did not take place

Overview
Aside from the fix itself, I've refactored a bit to make it more obvious
which columns are used within the function

**Motivation**
There was a bug, since:
- `a` was twice assigned into s[0] rather than into s[0] & s[1]
- `q_o` was not assigned at all, but `q_m` was assigned twice.
So the actual check did not take place

**Overview**
Aside from the fix itself, I've refactored a bit to make it more obvious
which columns are used within the function
@cyphersnake cyphersnake self-assigned this Sep 27, 2024
@cyphersnake cyphersnake requested a review from chaosma September 27, 2024 08:22
Copy link
Collaborator

@chaosma chaosma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@cyphersnake
Copy link
Collaborator Author

Will merge a little later, because of PR-trait around

@cyphersnake cyphersnake merged commit c3fb0d7 into main Sep 30, 2024
1 check passed
@cyphersnake cyphersnake deleted the fix-assign-bit branch September 30, 2024 11:07
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