Skip to content

Commit 9a37786

Browse files
committed
Some commas to semicolons reformatting
1 parent ed783f8 commit 9a37786

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

bignumber.js

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2007,7 +2007,12 @@
20072007
}
20082008

20092009
// x < y? Point xc to the array of the bigger number.
2010-
if (xLTy) t = xc, xc = yc, yc = t, y.s = -y.s;
2010+
if (xLTy) {
2011+
t = xc;
2012+
xc = yc;
2013+
yc = t;
2014+
y.s = -y.s;
2015+
}
20112016

20122017
b = (j = yc.length) - (i = xc.length);
20132018

@@ -2161,7 +2166,14 @@
21612166
ycL = yc.length;
21622167

21632168
// Ensure xc points to longer array and xcL to its length.
2164-
if (xcL < ycL) zc = xc, xc = yc, yc = zc, i = xcL, xcL = ycL, ycL = i;
2169+
if (xcL < ycL) {
2170+
zc = xc;
2171+
xc = yc;
2172+
yc = zc;
2173+
i = xcL;
2174+
xcL = ycL;
2175+
ycL = i;
2176+
}
21652177

21662178
// Initialise the result array with zeros.
21672179
for (i = xcL + ycL, zc = []; i--; zc.push(0));
@@ -2282,7 +2294,12 @@
22822294
b = yc.length;
22832295

22842296
// Point xc to the longer array, and b to the shorter length.
2285-
if (a - b < 0) t = yc, yc = xc, xc = t, b = a;
2297+
if (a - b < 0) {
2298+
t = yc;
2299+
yc = xc;
2300+
xc = t;
2301+
b = a;
2302+
}
22862303

22872304
// Only start adding at yc.length - 1 as the further digits of xc can be ignored.
22882305
for (a = 0; b;) {
@@ -2568,7 +2585,12 @@
25682585
intDigits = isNeg ? intPart.slice(1) : intPart,
25692586
len = intDigits.length;
25702587

2571-
if (g2) i = g1, g1 = g2, g2 = i, len -= i;
2588+
if (g2) {
2589+
i = g1;
2590+
g1 = g2;
2591+
g2 = i;
2592+
len -= i;
2593+
}
25722594

25732595
if (g1 > 0 && len > 0) {
25742596
i = len % g1 || g1;

0 commit comments

Comments
 (0)