Merge pull request #103 from zpratt/fix-coefficient-issue-on-old-ipads

Apply the proposed change from @MikeMcl to fix an issue on old ipads
This commit is contained in:
Michael M 2016-11-23 18:53:39 +00:00 committed by GitHub
commit e9c598ab82
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) {