Apply the proposed change from @MikeMcl to fix an issue on old ipads
Fixes https://github.com/MikeMcl/bignumber.js/issues/102
This commit is contained in:
parent
b2f963c331
commit
af783aac59
|
@ -1859,7 +1859,7 @@
|
|||
// Only start adding at yc.length - 1 as the further digits of xc can be ignored.
|
||||
for ( a = 0; b; ) {
|
||||
a = ( xc[--b] = xc[b] + yc[b] + a ) / BASE | 0;
|
||||
xc[b] %= BASE;
|
||||
xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE;
|
||||
}
|
||||
|
||||
if (a) {
|
||||
|
|
Loading…
Reference in New Issue