Skip to content

Commit

Permalink
bn: rename BN#move to BN#_move
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid authored and dcousens committed Jun 6, 2018
1 parent a472c1b commit 8963ee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bn.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
dest.red = this.red;
};

BN.prototype.move = function move (dest) {
BN.prototype._move = function _move (dest) {
dest.words = this.words;
dest.length = this.length;
dest.negative = this.negative;
Expand Down Expand Up @@ -3177,7 +3177,7 @@
Red.prototype.imod = function imod (a) {
if (this.prime) return this.prime.ireduce(a)._forceRed(this);

a.umod(this.m)._forceRed(this).move(a);
a.umod(this.m)._forceRed(this)._move(a);
return a;
};

Expand Down

0 comments on commit 8963ee9

Please sign in to comment.