Skip to content

Commit

Permalink
Merge pull request brix#113 from aaron-schmidt/patch-1
Browse files Browse the repository at this point in the history
Putting (bits1 | bits2) expression into a variable (fix for iOS 6 bug)
  • Loading branch information
evanvosberg authored Sep 13, 2018
2 parents 31efd5b + 7e4cf2f commit 52f7128
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/enc-base64.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@
if (i % 4) {
var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);
var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);
words[nBytes >>> 2] |= (bits1 | bits2) << (24 - (nBytes % 4) * 8);
var bitsCombined = bits1 | bits2;
words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);
nBytes++;
}
}
Expand Down

0 comments on commit 52f7128

Please sign in to comment.