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

bellpepper-emulated: Fix constant bug in sub_op #31

Closed
wants to merge 1 commit into from

Conversation

wwared
Copy link
Contributor

@wwared wwared commented Feb 16, 2024

Constant elements were not being subtracted properly. Noticed this by calling .neg() on a constant and seeing the result was equal to the input.

@wwared wwared requested review from huitseeker and avras and removed request for huitseeker and avras February 16, 2024 20:32
@wwared
Copy link
Contributor Author

wwared commented Feb 16, 2024

Closing, will re-open a better PR with proper tests. This change fails because we're asserting that the bigint is not negative in other parts of the code.

@wwared wwared closed this Feb 16, 2024
@wwared wwared deleted the fix-emulated-sub-const branch February 16, 2024 20:37
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.

1 participant