Merge pull request #6 from arnaucube/master

small fix bn128.js/_preparePairing/loopCount.neg()
This commit is contained in:
Jordi Baylina 2018-11-02 10:00:52 +01:00 committed by GitHub
commit 696e20f82b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -66,7 +66,7 @@ class BN128 {
// Set loopCountNeg
if (this.loopCount.isNegative()) {
this.loopCount = this.neg();
this.loopCount = this.loopCount.neg();
this.loopCountNeg = true;
} else {
this.loopCountNeg = false;