We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a4d332 commit b3049c5Copy full SHA for b3049c5
1 file changed
src/bigint/big-integer-jsbn.ts
@@ -85,7 +85,6 @@ function nbits(x: number): number {
85
r += 2;
86
}
87
if ((t = x >> 1) !== 0) {
88
- x = t;
89
r += 1;
90
91
return r;
@@ -1076,9 +1075,7 @@ export class BigInteger {
1076
1075
let x = this.s < 0 ? this.negate() : this.clone();
1077
let y = a.s < 0 ? a.negate() : a.clone();
1078
if (x.compareTo(y) < 0) {
1079
- const t = x;
1080
- x = y;
1081
- y = t;
+ [x, y] = [y, x];
1082
1083
let i = x.getLowestSetBit();
1084
let g = y.getLowestSetBit();
0 commit comments