indutny / bn.js

BigNum in pure javascript
MIT License
1.2k stars 151 forks source link

fix iaddn sign issue #216

Closed fanatid closed 5 years ago

fanatid commented 5 years ago

Issue #215

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

axic commented 5 years ago

You may want to add a test case.

fanatid commented 5 years ago

@axic thanks for remainder, fixed :)