Skip to content

fix iaddn sign issue#216

Merged
fanatid merged 1 commit intoindutny:masterfrom
fanatid:fix-isubn-sign
Jul 7, 2019
Merged

fix iaddn sign issue#216
fanatid merged 1 commit intoindutny:masterfrom
fanatid:fix-isubn-sign

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