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 iaddn sign issue #216

Merged
merged 1 commit into from
Jul 7, 2019
Merged

fix iaddn sign issue #216

merged 1 commit into from
Jul 7, 2019

Conversation

fanatid
Copy link
Collaborator

@fanatid fanatid commented Feb 25, 2019

Issue #215

When we sub number from BN instance and this number equal to number in
BN instance we receive zero with negative sign.

@fanatid fanatid mentioned this pull request Feb 25, 2019
@axic
Copy link
Contributor

axic commented Feb 25, 2019

You may want to add a test case.

@fanatid fanatid changed the title fix isubn sign issue fix iaddn sign issue Feb 25, 2019
When we add number to BN instance and this number equal to number in
BN instance with negative value we receive zero with negative sign.
@fanatid
Copy link
Collaborator Author

fanatid commented Feb 25, 2019

@axic thanks for remainder, fixed :)

chjj added a commit to bcoin-org/bcrypto that referenced this pull request Mar 28, 2019
@fanatid fanatid merged commit 44650ad into indutny:master Jul 7, 2019
@fanatid fanatid deleted the fix-isubn-sign branch July 7, 2019 19:53
@fanatid fanatid mentioned this pull request Dec 22, 2019
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