Skip to content

Commit

Permalink
Bugfix for bnpFromInt function
Browse files Browse the repository at this point in the history
  • Loading branch information
antife-yinyue committed May 29, 2015
1 parent f583fc6 commit 2050dcc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/jsencrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function bnpFromInt(x) {
this.t = 1;
this.s = (x<0)?-1:0;
if(x > 0) this[0] = x;
else if(x < -1) this[0] = x+DV;
else if(x < -1) this[0] = x+this.DV;
else this.t = 0;
}

Expand Down
Loading

0 comments on commit 2050dcc

Please sign in to comment.