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:
zach pratt 2016-11-23 12:26:55 -06:00
parent b2f963c331
commit af783aac59
1 changed files with 1 additions and 1 deletions

View File

@ -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) {