Skip to content

Commit 2050dcc

Browse files
committed
Bugfix for bnpFromInt function
1 parent f583fc6 commit 2050dcc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bin/jsencrypt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function bnpFromInt(x) {
120120
this.t = 1;
121121
this.s = (x<0)?-1:0;
122122
if(x > 0) this[0] = x;
123-
else if(x < -1) this[0] = x+DV;
123+
else if(x < -1) this[0] = x+this.DV;
124124
else this.t = 0;
125125
}
126126

0 commit comments

Comments
 (0)